Updated the OutlinedButton class API doc (#80454)

This commit is contained in:
Hans Muller 2021-04-14 17:00:20 -07:00 committed by GitHub
parent a745fc5870
commit 2f1d034087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,14 @@ import 'theme_data.dart';
/// outlined buttons in an app can be overridden with the [Theme]'s /// outlined buttons in an app can be overridden with the [Theme]'s
/// [ThemeData.outlinedButtonTheme] property. /// [ThemeData.outlinedButtonTheme] property.
/// ///
/// Unlike [TextButton] or [ElevatedButton], outline buttons have a
/// default [ButtonStyle.side] which defines the appearance of the
/// outline. Because the default `side` is non-null, it
/// unconditionally overrides the shape's [OutlinedBorder.side]. In
/// other words, to specify an outlined button's shape _and_ the
/// appearance of its outline, both the [ButtonStyle.shape] and
/// [ButtonStyle.side] properties must be specified.
///
/// {@tool dartpad --template=stateless_widget_scaffold_center} /// {@tool dartpad --template=stateless_widget_scaffold_center}
/// ///
/// Here is an example of a basic [OutlinedButton]. /// Here is an example of a basic [OutlinedButton].