Add WidgetStateBorderSide example and tests for it. (#155559)
Fixes https://github.com/flutter/flutter/issues/155557 ### Description - Adds example for `WidgetStateBorderSide` - Adds tests for `examples/api/lib/widgets/widget_state/widget_state_border_side.0.dart`
This commit is contained in:
committed by
GitHub
parent
4d1f086a64
commit
ce24dd6a76
@@ -480,6 +480,13 @@ class _EnabledAndDisabledMouseCursor extends WidgetStateMouseCursor {
|
||||
/// property values. [WidgetStateBorderSide] should only be used with widgets that document
|
||||
/// their support, like [ActionChip.side].
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example defines a [WidgetStateBorderSide] which resolves to different
|
||||
/// border colors depending on how the user interacts with it.
|
||||
///
|
||||
/// ** See code in examples/api/lib/widgets/widget_state/widget_state_border_side.0.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// This class should only be used for parameters which are documented to take
|
||||
/// [WidgetStateBorderSide], otherwise only the default state will be used.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user