📜  Flutter Layout Challenge London App brewery - 代码示例

📅  最后修改于: 2022-03-11 14:56:59.460000             🧑  作者: Mango

代码示例1
MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.teal,
        body: SafeArea(
        child: Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            Container(
          height: double.infinity,
          width: 100.0,
          color: Colors.red,
        ),
            // your column widget here
        Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            // your yellow box here
            Container(
              height: 100,
              width: 100.0,
              color: Colors.yellow,
            ),
            // your green box here
             Container(
              height: 100,
              width: 100.0,
              color: Colors.green,
            ),
          ],
        ),
          Container(
          height: double.infinity,
          width: 100.0,
          color: Colors.blue,
        ),
          ],
        ),
        ),
      ), 
      debugShowCheckedModeBanner: false,     
    );