mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Added smaple code for Flat Button
This commit is contained in:
parent
1003170236
commit
adc4234bc7
@ -45,17 +45,17 @@ import 'theme_data.dart';
|
||||
///
|
||||
/// ```dart
|
||||
/// FlatButton(
|
||||
/// onPressed: () {
|
||||
/// _doSomething();
|
||||
/// },
|
||||
/// child: Text(
|
||||
/// "Flat Button",
|
||||
/// style: TextStyle(
|
||||
/// color: Colors.white,
|
||||
/// fontSize: 20.0
|
||||
/// ),
|
||||
/// ),
|
||||
/// )
|
||||
/// onPressed: () {
|
||||
/// _doSomething();
|
||||
/// },
|
||||
/// child: Text(
|
||||
/// "Flat Button",
|
||||
/// style: TextStyle(
|
||||
/// color: Colors.white,
|
||||
/// fontSize: 20.0
|
||||
/// ),
|
||||
/// ),
|
||||
/// )
|
||||
/// ```
|
||||
/// {@end-tool}
|
||||
/// See also:
|
||||
|
Loading…
Reference in New Issue
Block a user