Update the MaterialStateProperty "see also" lists (#93894)
This commit is contained in:
parent
a80ad0e1a0
commit
ca14d85cf7
@ -19,6 +19,7 @@ import 'input_border.dart';
|
|||||||
///
|
///
|
||||||
/// * [MaterialStateProperty], an interface for objects that "resolve" to
|
/// * [MaterialStateProperty], an interface for objects that "resolve" to
|
||||||
/// different values depending on a widget's material state.
|
/// different values depending on a widget's material state.
|
||||||
|
/// {@template flutter.material.MaterialStateProperty.implementations}
|
||||||
/// * [MaterialStateColor], a [Color] that implements `MaterialStateProperty`
|
/// * [MaterialStateColor], a [Color] that implements `MaterialStateProperty`
|
||||||
/// which is used in APIs that need to accept either a [Color] or a
|
/// which is used in APIs that need to accept either a [Color] or a
|
||||||
/// `MaterialStateProperty<Color>`.
|
/// `MaterialStateProperty<Color>`.
|
||||||
@ -28,10 +29,19 @@ import 'input_border.dart';
|
|||||||
/// * [MaterialStateOutlinedBorder], an [OutlinedBorder] that implements
|
/// * [MaterialStateOutlinedBorder], an [OutlinedBorder] that implements
|
||||||
/// `MaterialStateProperty` which is used in APIs that need to accept either
|
/// `MaterialStateProperty` which is used in APIs that need to accept either
|
||||||
/// an [OutlinedBorder] or a [MaterialStateProperty<OutlinedBorder>].
|
/// 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
|
/// * [MaterialStateBorderSide], a [BorderSide] that implements
|
||||||
/// `MaterialStateProperty` which is used in APIs that need to accept either
|
/// `MaterialStateProperty` which is used in APIs that need to accept either
|
||||||
/// a [BorderSide] or a [MaterialStateProperty<BorderSide>].
|
/// 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>].
|
||||||
|
/// {@endtemplate}
|
||||||
enum MaterialState {
|
enum MaterialState {
|
||||||
/// The state when the user drags their mouse cursor over the given widget.
|
/// The state when the user drags their mouse cursor over the given widget.
|
||||||
///
|
///
|
||||||
@ -611,12 +621,7 @@ class _MaterialStateUnderlineInputBorder extends MaterialStateUnderlineInputBord
|
|||||||
///
|
///
|
||||||
/// See also:
|
/// See also:
|
||||||
///
|
///
|
||||||
/// * [MaterialStateColor], a [Color] that implements `MaterialStateProperty`
|
/// {@macro flutter.material.MaterialStateProperty.implementations}
|
||||||
/// which is used in APIs that need to accept either a [Color] or a
|
|
||||||
/// `MaterialStateProperty<Color>`.
|
|
||||||
/// * [MaterialStateMouseCursor], a [MouseCursor] that implements `MaterialStateProperty`
|
|
||||||
/// which is used in APIs that need to accept either a [MouseCursor] or a
|
|
||||||
/// [MaterialStateProperty<MouseCursor>].
|
|
||||||
abstract class MaterialStateProperty<T> {
|
abstract class MaterialStateProperty<T> {
|
||||||
|
|
||||||
/// Returns a value of type `T` that depends on [states].
|
/// Returns a value of type `T` that depends on [states].
|
||||||
|
Loading…
x
Reference in New Issue
Block a user