File tree Expand file tree Collapse file tree 1 file changed +20
-9
lines changed
Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Original file line number Diff line number Diff 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 ),
You can’t perform that action at this time.
0 commit comments