From ca5652281fcc168e4e32b39bae06ce2d61c76b74 Mon Sep 17 00:00:00 2001 From: wonbin <wonbin3977@gmail.com> Date: Wed, 30 Apr 2025 17:01:45 +0900 Subject: [PATCH] page layout-2 --- lib/main.dart | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 6ce223a..7732c3b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -30,7 +30,37 @@ class _MyHomePageState extends State<MyHomePage> { appBar: AppBar( title: Text(widget.title), ), - body: Container(), + body: Container( + margin: EdgeInsets.all(20), + padding: EdgeInsets.symmetric(vertical: 20, horizontal: 20), + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Container( + width: 200, + height: 100, + decoration: BoxDecoration( + border: Border.all(color: Colors.black, width: 2), + ), + child: Text('text in box'), + ), + Text('text outside of box'), + Row( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text('text in Row'), + Container( + width: 100, + height: 100, + child: Icon(Icons.flag), + ), + ], + ), + ], + ), + ), + ), ); } } \ No newline at end of file -- GitLab