@@ -13,14 +13,9 @@ class Home extends StatelessWidget {
13
13
centerTitle: true ,
14
14
backgroundColor: Colors .red[600 ]
15
15
),
16
- body: Center (
17
- child: IconButton (
18
- onPressed: () {
19
- print ('you clicked me' );
20
- },
21
- icon: Icon (Icons .alternate_email),
22
- color: Colors .amber,
23
- ),
16
+ body: Padding (
17
+ padding: EdgeInsets .all (20.0 ),
18
+ child: Text ('hello, again' )
24
19
),
25
20
floatingActionButton: FloatingActionButton (
26
21
backgroundColor: Colors .red[600 ],
@@ -30,31 +25,11 @@ class Home extends StatelessWidget {
30
25
}
31
26
}
32
27
33
- // snippets for icons and buttons
28
+ // snippets for padding & margin
34
29
35
- // Icon(
36
- // Icons.airport_shuttle,
37
- // color: Colors.lightBlue,
38
- // size: 50.0
39
- // ),
40
-
41
- // RaisedButton(
42
- // onPressed: () {
43
- // print('you clicked me');
44
- // },
45
- // child: Text('click me'),
46
- // color: Colors.lightBlue,
47
- // ),
48
-
49
- // FlatButton(
50
- // onPressed: () {},
51
- // child: Text('click me again'),
52
- // color: Colors.amber
53
- // ),
54
-
55
- // RaisedButton.icon(
56
- // onPressed: () {},
57
- // icon: Icon(Icons.mail),
58
- // label: Text('mail me'),
59
- // color: Colors.amber,
60
- // ),
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
+ // ),
0 commit comments