Skip to content

Commit 662492d

Browse files
committed
lesson-10
1 parent 09de349 commit 662492d

File tree

1 file changed

+10
-35
lines changed

1 file changed

+10
-35
lines changed

myapp/lib/main.dart

Lines changed: 10 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,9 @@ class Home extends StatelessWidget {
1313
centerTitle: true,
1414
backgroundColor: Colors.red[600]
1515
),
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')
2419
),
2520
floatingActionButton: FloatingActionButton(
2621
backgroundColor: Colors.red[600],
@@ -30,31 +25,11 @@ class Home extends StatelessWidget {
3025
}
3126
}
3227

33-
// snippets for icons and buttons
28+
// snippets for padding & margin
3429

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

Comments
 (0)