File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed
Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,13 @@ class Home extends StatelessWidget {
1414 backgroundColor: Colors .red[600 ]
1515 ),
1616 body: Center (
17- child: Image .asset ('assets/space-3.jpg' ),
17+ child: IconButton (
18+ onPressed: () {
19+ print ('you clicked me' );
20+ },
21+ icon: Icon (Icons .alternate_email),
22+ color: Colors .amber,
23+ ),
1824 ),
1925 floatingActionButton: FloatingActionButton (
2026 backgroundColor: Colors .red[600 ],
@@ -24,5 +30,31 @@ class Home extends StatelessWidget {
2430 }
2531}
2632
33+ // snippets for icons and buttons
2734
35+ // Icon(
36+ // Icons.airport_shuttle,
37+ // color: Colors.lightBlue,
38+ // size: 50.0
39+ // ),
2840
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+ // ),
You can’t perform that action at this time.
0 commit comments