@@ -541,6 +541,26 @@ new Icon(Icons.flight_takeoff, color: Colors.blueAccent, size: 96.0),
541
541
542
542
## Button
543
543
544
+ ### Material Button
545
+
546
+ <a href =" https://imgur.com/x30XGUf " ><img src =" https://i.imgur.com/x30XGUf.png " title =" source: imgur.com " /></a >
547
+
548
+ ``` dart
549
+ MaterialButton(
550
+ onPressed: () {
551
+ debugPrint('I am a material button');
552
+ },
553
+ shape: const StadiumBorder(),
554
+ textColor: Colors.black,
555
+ color: Colors.blue[300],
556
+ splashColor: Colors.blue[900],
557
+ disabledColor: Colors.grey,
558
+ disabledTextColor: Colors.white,
559
+ highlightColor: Colors.orangeAccent,
560
+ child: Text('Flat Button'),
561
+ ),
562
+ ```
563
+
544
564
### Flat Button
545
565
546
566
<a href =" https://imgur.com/x30XGUf " ><img src =" https://i.imgur.com/x30XGUf.png " title =" source: imgur.com " /></a >
@@ -605,7 +625,7 @@ IconButton(
605
625
606
626
607
627
``` dart
608
- return Scaffold(
628
+ Scaffold(
609
629
floatingActionButton: new FloatingActionButton(
610
630
mini: true,
611
631
child: new Icon(Icons.add),
0 commit comments