Skip to content
Snippets Groups Projects
Commit ca565228 authored by wonbin's avatar wonbin
Browse files

page layout-2

parent e82294a0
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment