File tree 1 file changed +17
-13
lines changed
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 {
13
13
centerTitle: true ,
14
14
backgroundColor: Colors .red[600 ]
15
15
),
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
+ ],
19
32
),
20
33
floatingActionButton: FloatingActionButton (
21
34
backgroundColor: Colors .red[600 ],
22
35
child: Text ('click' ),
23
36
),
24
37
);
25
38
}
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