MaterialStateOutlinedBorder typedef
- @Deprecated('Use WidgetStateOutlinedBorder instead. ' 'Moved to the Widgets layer to make code available outside of Material. ' 'This feature was deprecated after v3.19.0-0.3.pre.')
Defines an OutlinedBorder whose value depends on a set of MaterialStates which represent the interactive state of a component.
To use a MaterialStateOutlinedBorder, you should create a subclass of an
OutlinedBorder and implement MaterialStateOutlinedBorder's abstract
resolve
method.
This example defines a subclass of RoundedRectangleBorder and an
implementation of MaterialStateOutlinedBorder, that resolves to
RoundedRectangleBorder when its widget is selected.
link
To create a local project with this code sample, run:
flutter create --sample=material.MaterialStateOutlinedBorder.1 mysample
This class should only be used for parameters which are documented to take MaterialStateOutlinedBorder, otherwise only the default state will be used.
See also:
- WidgetStateOutlinedBorder, the non-Material version that can be used
interchangeably with
MaterialStateOutlinedBorder
. - ShapeBorder the base class for shape outlines.
Implementation
@Deprecated(
'Use WidgetStateOutlinedBorder instead. '
'Moved to the Widgets layer to make code available outside of Material. '
'This feature was deprecated after v3.19.0-0.3.pre.'
)
typedef MaterialStateOutlinedBorder = WidgetStateOutlinedBorder;