Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 26809b8

Browse files
Merge pull request #5 from amitdash291/patch-1
Add Material Button Example
2 parents 4224d56 + 4a5b3ca commit 26809b8

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

‎README.md‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
- [Material](#material)
3535
- [Button](#button)
36+
- [Material Button](#material-button)
3637
- [Flat Button](#flat-button)
3738
- [Raised Button](#raised-button)
3839
- [Icon Button](#icon-button)
@@ -541,6 +542,25 @@ new Icon(Icons.flight_takeoff, color: Colors.blueAccent, size: 96.0),
541542

542543
## Button
543544

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+
544564
### Flat Button
545565

546566
<a href="https://imgur.com/x30XGUf"><img src="https://i.imgur.com/x30XGUf.png" title="source: imgur.com" /></a>
@@ -605,7 +625,7 @@ IconButton(
605625

606626

607627
```dart
608-
return Scaffold(
628+
Scaffold(
609629
floatingActionButton: new FloatingActionButton(
610630
mini: true,
611631
child: new Icon(Icons.add),

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /