From 2f1d034087ae39dd9f082bbcd7ffd4975f0f5bb4 Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Wed, 14 Apr 2021 17:00:20 -0700 Subject: [PATCH] Updated the OutlinedButton class API doc (#80454) --- packages/flutter/lib/src/material/outlined_button.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/flutter/lib/src/material/outlined_button.dart b/packages/flutter/lib/src/material/outlined_button.dart index 5ad38779c65..2aef70206c3 100644 --- a/packages/flutter/lib/src/material/outlined_button.dart +++ b/packages/flutter/lib/src/material/outlined_button.dart @@ -40,6 +40,14 @@ import 'theme_data.dart'; /// outlined buttons in an app can be overridden with the [Theme]'s /// [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} /// /// Here is an example of a basic [OutlinedButton].