We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b54d72c commit 200c23cCopy full SHA for 200c23c
packages/flutter/lib/src/material/outlined_button.dart
@@ -41,6 +41,22 @@ import 'theme_data.dart';
41
/// outlined buttons in an app can be overridden with the [Theme]'s
42
/// [ThemeData.outlinedButtonTheme] property.
43
///
44
+/// {@tool dartpad --template=stateless_widget_scaffold_center}
45
+///
46
+/// Here is an example of a basic [OutlinedButton].
47
48
+/// ```dart
49
+/// Widget build(BuildContext context) {
50
+/// return OutlinedButton(
51
+/// onPressed: () {
52
+/// print('Received click');
53
+/// },
54
+/// child: const Text('Click Me'),
55
+/// );
56
+/// }
57
+/// ```
58
+/// {@end-tool}
59
60
/// The static [styleFrom] method is a convenient way to create a
61
/// outlined button [ButtonStyle] from simple values.
62
0 commit comments