Added OutlinedButton code sample (#76013)

This commit is contained in:
Abhishek Ghaskata 2021-02-17 23:56:04 +05:30 committed by GitHub
parent b54d72cf66
commit 200c23c139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
///