|
33 | 33 |
|
34 | 34 | - [Material](#material)
|
35 | 35 | - [Button](#button)
|
| 36 | + - [Material Button](#material-button) |
36 | 37 | - [Flat Button](#flat-button)
|
37 | 38 | - [Raised Button](#raised-button)
|
38 | 39 | - [Icon Button](#icon-button)
|
@@ -541,6 +542,25 @@ new Icon(Icons.flight_takeoff, color: Colors.blueAccent, size: 96.0),
|
541 | 542 |
|
542 | 543 | ## Button
|
543 | 544 |
|
| 545 | +### Material Button |
| 546 | + |
| 547 | +<a href="https://imgur.com/dBP8Xzw"><img src="https://i.imgur.com/dBP8Xzw.png" title="source: imgur.com" /></a> |
| 548 | + |
| 549 | +```dart |
| 550 | +MaterialButton( |
| 551 | + onPressed: () { |
| 552 | + debugPrint('I am a material button'); |
| 553 | + }, |
| 554 | + shape: const StadiumBorder(), |
| 555 | + textColor: Colors.black, |
| 556 | + color: Colors.blue[300], |
| 557 | + splashColor: Colors.blue[900], |
| 558 | + disabledColor: Colors.grey, |
| 559 | + disabledTextColor: Colors.white, |
| 560 | + child: Text('Material 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