Results for “MaterialState”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
API reference
- MaterialStateOutlineInputBorderclass
Defines a OutlineInputBorder that is also a MaterialStateProperty. material.MaterialStateOutlineInputBorder MaterialStateOutlineInputBorder Material State Outline Input Border class material
- MaterialStateUnderlineInputBorderclass
Defines a UnderlineInputBorder that is also a MaterialStateProperty. material.MaterialStateUnderlineInputBorder MaterialStateUnderlineInputBorder Material State Underline Input Border class material
- MaterialStateUnderlineInputBorder.resolveWithconstructor
Creates a MaterialStateUnderlineInputBorder from a MaterialPropertyResolver<InputBorder> callback function. material.MaterialStateUnderlineInputBorder.MaterialStateUnderlineInputBorder.resolveWith MaterialStateUnderlineInputBorder resolveWith Material State Underline Input Border.resolve With constructor material
- MaterialStateOutlineInputBorder.resolveWithconstructor
Creates a MaterialStateOutlineInputBorder from a MaterialPropertyResolver<InputBorder> callback function. material.MaterialStateOutlineInputBorder.MaterialStateOutlineInputBorder.resolveWith MaterialStateOutlineInputBorder resolveWith Material State Outline Input Border.resolve With constructor material
- MaterialStateUnderlineInputBorder.newconstructor
provide const constructors so that they can be used in const expressions. material.MaterialStateUnderlineInputBorder.MaterialStateUnderlineInputBorder.new MaterialStateUnderlineInputBorder new Material State Underline Input Border.new constructor material
- MaterialStateOutlineInputBorder.newconstructor
provide const constructors so that they can be used in const expressions. material.MaterialStateOutlineInputBorder.MaterialStateOutlineInputBorder.new MaterialStateOutlineInputBorder new Material State Outline Input Border.new constructor material
- material.MaterialStateColortypedef
Defines a Color that is also a MaterialStateProperty. material.MaterialStateColor MaterialStateColor Material State Color typedef material
- material.MaterialStateTextStyletypedef
Defines a TextStyle that is also a MaterialStateProperty. material.MaterialStateTextStyle MaterialStateTextStyle Material State Text Style typedef material
- material.MaterialStatesControllertypedef
Manages a set of MaterialStates and notifies listeners of changes. material.MaterialStatesController MaterialStatesController Material States Controller typedef material
- material.MaterialStatePropertyAlltypedef
Convenience class for creating a MaterialStateProperty that resolves to the given value for all states. material.MaterialStatePropertyAll MaterialStatePropertyAll Material State Property All typedef material
- material.MaterialStateMouseCursortypedef
MaterialStates which represent the interactive state of a component. material.MaterialStateMouseCursor MaterialStateMouseCursor Material State Mouse Cursor typedef material
- material.MaterialStateOutlinedBordertypedef
MaterialStates which represent the interactive state of a component. material.MaterialStateOutlinedBorder MaterialStateOutlinedBorder Material State Outlined Border typedef material
- material.MaterialStatePropertytypedef
interactive "state", which is defined as a set of MaterialStates. material.MaterialStateProperty MaterialStateProperty Material State Property typedef material
- material.MaterialStateBorderSidetypedef
MaterialStates which represent the interactive state of a component. material.MaterialStateBorderSide MaterialStateBorderSide Material State Border Side typedef material
- material.MaterialStatetypedef
Material widgets can take on when receiving input from the user. material.MaterialState MaterialState Material State typedef material
- material.MaterialStateMixinmixin
classes that require knowledge of changing WidgetState values for their child widgets. material.MaterialStateMixin MaterialStateMixin Material State Mixin mixin material
Version changes
- Rename MaterialState to WidgetState3.22.0breaking
migrate, replace `MaterialState` with `WidgetState`. Code before migration: ```dart MaterialState selected = MaterialState.selected; final MaterialStateProperty backgroundColor; class _MouseCursor extends MaterialStateMouseCursor{ const _MouseCursor(this.resolveCallback); final MaterialPropertyResolver<MouseCursor?> resolveCallback
- ThemeData's toggleableActiveColor property has been deprecated3.7.0deprecated
after migration: ```dart final ThemeData theme = ThemeData(); MaterialApp( theme: theme.copyWith( switchTheme: SwitchThemeData( thumbColor: MaterialStateProperty.resolveWith<Color?>( (Set states) { if (states.contains(MaterialState.disabled)) { return null; } if (states.contains(MaterialState.selected)) { return myColor
- Updated Checkbox.fillColor behavior3.13.0breaking
Checkbox.fillColor` property to customize the checkbox. Code before migration: ```dart Checkbox( fillColor: MaterialStateProperty.resolveWith((states) { if (!states.contains(MaterialState.selected)) { return Colors.red; } return null; }), value: _checked, onChanged: _enabled ? (bool? value) { setState
- New Buttons and Button Themes1.20.0breaking
A new set of basic material button widgets and themes have been
- Deprecated API removed after v3.103.13.0removed
ColorScheme.primaryContainer ColorScheme.secondaryContainer ColorScheme ThemeData.primaryColorBrightness Brightness ThemeData.primaryColor ThemeData.brightness Theme RawScrollbar Scrollbar ScrollbarThemeData CupertinoScrollbar Scrollbar.hoverThickness MaterialStateProperty ScrollbarThemeData.thickness MaterialStateProperties MaterialState AnimationSheetBuilder TestWidgetsFlutterBinding.addTime TestWidgetsFlutterBinding.runAsync TestWidgetsFlutterBinding.runTest AutomatedTestWidgetsFlutterBinding.runTest LiveTestWidgetsFlutterBinding.runTest TestWidgetsFlutterBinding AutomatedTestWidgetsFlutterBinding LiveTestWidgetsFlutterBinding
- Deprecated API removed after v3.193.22.0removed
ThemeData.colorScheme BottomAppBarTheme ColorScheme CupertinoContextMenu.previewBuilder CupertinoContextMenu CupertinoContextMenu.animationOpensAt Scrollbar.showTrackOnHover Scrollbar ScrollbarThemeData.showTrackOnHover ScrollbarThemeData.trackVisibility ScrollbarThemeData MaterialState MaterialStateProperty KeepAliveHandle.release KeepAliveHandle InteractiveViewer.alignPanAxis InteractiveViewer PanAxis MediaQuery.boldTextOverride MediaQuery AnimatedList AnimatedGrid AnimatedListItemBuilder AnimatedListRemovedItemBuilder AnimatedItemBuilder AnimatedRemovedItemBuilder FlutterDriver.enableAccessibility