Skip to content

Commit 0fd5519

Browse files
committed
lesson-12
1 parent c6776b9 commit 0fd5519

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

myapp/lib/main.dart

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,31 @@ class Home extends StatelessWidget {
1313
centerTitle: true,
1414
backgroundColor: Colors.red[600]
1515
),
16-
body: Row(
17-
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
18-
crossAxisAlignment: CrossAxisAlignment.end,
16+
body: Column(
17+
mainAxisAlignment: MainAxisAlignment.center,
18+
crossAxisAlignment: CrossAxisAlignment.start,
1919
children: <Widget>[
20-
Text('hello, world'),
21-
FlatButton(
22-
onPressed: () {},
23-
color: Colors.amber,
24-
child: Text('click me'),
20+
Row(
21+
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
22+
children: <Widget>[
23+
Text('text one'),
24+
Text('text two'),
25+
],
2526
),
2627
Container(
28+
padding: EdgeInsets.all(20.0),
2729
color: Colors.cyan,
30+
child: Text('one'),
31+
),
32+
Container(
2833
padding: EdgeInsets.all(30.0),
29-
child: Text('inside container')
34+
color: Colors.pinkAccent,
35+
child: Text('two'),
36+
),
37+
Container(
38+
padding: EdgeInsets.all(40.0),
39+
color: Colors.amber,
40+
child: Text('three'),
3041
),
3142
],
3243
),

0 commit comments

Comments
 (0)