Unverified Commit 200c23c1 authored by Abhishek Ghaskata's avatar Abhishek Ghaskata Committed by GitHub

Added OutlinedButton code sample (#76013)

parent b54d72cf
......@@ -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.
///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment