File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -13,23 +13,27 @@ class Home extends StatelessWidget {
1313 centerTitle: true ,
1414 backgroundColor: Colors .red[600 ]
1515 ),
16- body: Padding (
17- padding: EdgeInsets .all (20.0 ),
18- child: Text ('hello, again' )
16+ body: Row (
17+ mainAxisAlignment: MainAxisAlignment .spaceEvenly,
18+ crossAxisAlignment: CrossAxisAlignment .end,
19+ children: < Widget > [
20+ Text ('hello, world' ),
21+ FlatButton (
22+ onPressed: () {},
23+ color: Colors .amber,
24+ child: Text ('click me' ),
25+ ),
26+ Container (
27+ color: Colors .cyan,
28+ padding: EdgeInsets .all (30.0 ),
29+ child: Text ('inside container' )
30+ ),
31+ ],
1932 ),
2033 floatingActionButton: FloatingActionButton (
2134 backgroundColor: Colors .red[600 ],
2235 child: Text ('click' ),
2336 ),
2437 );
2538 }
26- }
27-
28- // snippets for padding & margin
29-
30- // Container(
31- // margin: EdgeInsets.all(40.0),
32- // padding: EdgeInsets.all(30.0),
33- // color: Colors.grey[400],
34- // child: Text('hey, ninjas!'),
35- // ),
39+ }
You can’t perform that action at this time.
0 commit comments