Added OutlinedButton code sample (#76013)
This commit is contained in:
parent
b54d72cf66
commit
200c23c139
@ -41,6 +41,22 @@ import 'theme_data.dart';
|
||||
/// outlined buttons in an app can be overridden with the [Theme]'s
|
||||
/// [ThemeData.outlinedButtonTheme] property.
|
||||
///
|
||||
/// {@tool dartpad --template=stateless_widget_scaffold_center}
|
||||
///
|
||||
/// Here is an example of a basic [OutlinedButton].
|
||||
///
|
||||
/// ```dart
|
||||
/// Widget build(BuildContext context) {
|
||||
/// return OutlinedButton(
|
||||
/// onPressed: () {
|
||||
/// print('Received click');
|
||||
/// },
|
||||
/// child: const Text('Click Me'),
|
||||
/// );
|
||||
/// }
|
||||
/// ```
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// The static [styleFrom] method is a convenient way to create a
|
||||
/// outlined button [ButtonStyle] from simple values.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user