MaterialState typedef
- @Deprecated('Use WidgetState instead. ' 'Moved to the Widgets layer to make code available outside of Material. ' 'This feature was deprecated after v3.19.0-0.3.pre.')
Interactive states that some of the Material widgets can take on when receiving input from the user.
States are defined by https://material.io/design/interaction/states.html#usage.
Some Material widgets track their current state in a Set<MaterialState>
.
See also:
- WidgetState, a general non-Material version that can be used
interchangeably with
MaterialState
. They functionally work the same, except WidgetState can be used outside of Material. - MaterialStateProperty, an interface for objects that "resolve" to different values depending on a widget's material state.
- MaterialStateColor, a Color that implements
MaterialStateProperty
which is used in APIs that need to accept either a Color or aMaterialStateProperty<Color>
. - MaterialStateMouseCursor, a MouseCursor that implements
MaterialStateProperty
which is used in APIs that need to accept either a MouseCursor or a MaterialStateProperty<MouseCursor>. - MaterialStateOutlinedBorder, an OutlinedBorder that implements
MaterialStateProperty
which is used in APIs that need to accept either an OutlinedBorder or a MaterialStateProperty<OutlinedBorder>. - MaterialStateOutlineInputBorder, an OutlineInputBorder that implements
MaterialStateProperty
which is used in APIs that need to accept either an OutlineInputBorder or a MaterialStateProperty<OutlineInputBorder>. - MaterialStateUnderlineInputBorder, an UnderlineInputBorder that implements
MaterialStateProperty
which is used in APIs that need to accept either an UnderlineInputBorder or a MaterialStateProperty<UnderlineInputBorder>. - MaterialStateBorderSide, a BorderSide that implements
MaterialStateProperty
which is used in APIs that need to accept either a BorderSide or a MaterialStateProperty<BorderSide>. - MaterialStateTextStyle, a TextStyle that implements
MaterialStateProperty
which is used in APIs that need to accept either a TextStyle or a MaterialStateProperty<TextStyle>.
Implementation
@Deprecated(
'Use WidgetState 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 MaterialState = WidgetState;