Skip to main content

Crate waft_material

Crate waft_material 

Source
Expand description

Flutter counterpart: material_ui in flutter/packages, packages/material_ui/lib/src.

The Material Design widgets.

Macros§

button_style_button_accessors
The ButtonStyleButtonData accessor a ButtonStyleButton implementor writes; the bag lives under the field button_style_button.
button_style_button_setters
The fluent setters of the super. arguments a subclass’s Dart constructor takes, named by their ButtonStyleButtonData fields: button_style_button_setters!(TextButton; key, style, autofocus). Each writes the field of the bag under button_style_button.
material_route_transition_mixin_modal_route_overrides
The ModalRoute overrides a MaterialRouteTransitionMixin leaf inherits, plus waft-widgets’ modal_route_accessors!. Write it inside impl ModalRoute for MyRoute { .. }, next to the leaf’s own maintain_state.
material_route_transition_mixin_route_overrides
The Route overrides a MaterialRouteTransitionMixin leaf inherits: waft-widgets’ page_route_overrides! with did_push, did_pop and interface pointed at the mixin. Write it inside impl Route for MyRoute { .. }.
material_route_transition_mixin_transition_route_overrides
The TransitionRoute overrides a MaterialRouteTransitionMixin leaf inherits, plus waft-widgets’ modal_transition_route_overrides!. Write it inside impl TransitionRoute for MyRoute { .. }, next to the leaf’s own opaque.

Structs§

ActionChip
A Material Design action chip.
ActionIconTheme
An inherited widget that overrides the default icon of BackButtonIcon, CloseButtonIcon, DrawerButtonIcon, and EndDrawerButtonIcon in this widget’s subtree.
ActionIconThemeData
A ActionIconThemeData that overrides the default icons of BackButton, CloseButton, DrawerButton, and EndDrawerButton with ActionIconTheme::of or the overall Theme’s ThemeData::action_icon_theme.
AdaptationRef
An Adaptation of any type: what Dart’s Adaptation<Object> in ThemeData::adaptation_map becomes.
AdaptiveTextSelectionToolbar
The default context menu for text selection for the current platform.
AlertDialog
A Material Design alert dialog.
AnimatedTheme
Animated version of Theme which automatically transitions the colors, etc, over a given duration whenever the given theme changes.
AnimatedThemeState
Dart’s _AnimatedThemeState.
AnyDataTableSource
Erased DataTableSource: what a field or parameter Dart types as DataTableSource becomes.
AnyInkFeature
Erased InkFeature: one identity and a static vtable.
AnyInteractiveInkFeature
Erased InteractiveInkFeature: one identity and a static vtable.
AnyMaterialInkController
Erased MaterialInkController: one identity and a static vtable.
AppBar
A Material Design app bar.
AppBarState
Dart’s _AppBarState.
AppBarTheme
Defines default property values for descendant AppBar widgets.
AppBarThemeData
Defines default property values for descendant AppBar widgets.
Autocomplete
Creates a Material-styled autocomplete widget: a text field the user enters some text in, and a list of options to choose from.
BackButton
A Material Design back icon button.
BackButtonIcon
A “back” icon that’s appropriate for the current TargetPlatform.
Badge
A Material Design “badge”.
BadgeTheme
An inherited widget that overrides the default color style, and size parameters for Badges in this widget’s subtree.
BadgeThemeData
Overrides the default properties values for descendant Badge widgets.
BottomNavigationBar
A material widget that’s displayed at the bottom of an app for selecting among a small number of views, typically between three and five.
BottomNavigationBarState
Dart’s _BottomNavigationBarState.
BottomNavigationBarTheme
Applies a bottom navigation bar theme to descendant BottomNavigationBar widgets.
BottomNavigationBarThemeData
Defines default property values for descendant BottomNavigationBar widgets.
BottomSheet
A Material Design bottom sheet.
BottomSheetState
Dart’s _BottomSheetState.
BottomSheetThemeData
Defines default property values for BottomSheet’s Material.
ButtonBarDeprecated
An end-aligned row of buttons, laying out into a column if there is not enough horizontal space.
ButtonBarThemeDeprecated
Applies a button bar theme to descendant ButtonBar widgets.
ButtonBarThemeDataDeprecated
Defines the visual properties of ButtonBar widgets.
ButtonGroup
A row of related buttons.
ButtonGroupDefaults
Compose’s ButtonGroupDefaults: the spacing and shapes a group uses.
ButtonLayerBuilder
The type for ButtonStyle::background_builder and ButtonStyle::foreground_builder.
ButtonSegment
Data describing a segment of a SegmentedButton.
ButtonStyle
The visual properties that most buttons have in common.
ButtonStyleButtonData
The fields of Dart’s abstract ButtonStyleButton, which every subclass carries under the field button_style_button.
ButtonStyleState
The base State class for buttons whose style is defined by a ButtonStyle object; Dart’s private _ButtonStyleState, which a subclass names as its StatefulWidget::State.
ButtonTheme
Used with ButtonThemeData to configure the color and geometry of buttons.
ButtonThemeData
Used with ButtonTheme to configure the color and geometry of buttons.
CalendarDatePicker
A calendar date picker.
CalendarDatePickerDayDetails
Details about a day in a CalendarDatePicker, given to a CalendarDatePickerDayBuilder.
CalendarDatePickerState
Dart’s _CalendarDatePickerState.
CalendarDatePickerWeekdayDetails
Details about a weekday header in a CalendarDatePicker, given to a CalendarDatePickerWeekdayBuilder.
Card
A Material Design card: a panel with slightly rounded corners and an elevation shadow.
CardTheme
Defines default property values for descendant Card widgets.
CardThemeData
Defines default property values for descendant Card widgets.
CarouselController
A controller for CarouselView.
CarouselScrollPhysics
Scroll physics used by a CarouselView.
CarouselView
A Material Design carousel widget.
CarouselViewState
Dart’s _CarouselViewState.
CarouselViewTheme
An inherited widget that defines the configuration for CarouselViews in this widget’s subtree.
CarouselViewThemeData
Defines default property values for descendant CarouselView widgets.
Checkbox
A Material Design checkbox.
CheckboxListTile
A ListTile with a Checkbox. In other words, a checkbox with a label.
CheckboxMenuButton
A menu item that combines a Checkbox widget with a MenuItemButton.
CheckboxState
Dart’s _CheckboxState.
CheckboxTheme
Applies a checkbox theme to descendant Checkbox widgets.
CheckboxThemeData
Defines default property values for descendant Checkbox widgets.
CheckedPopupMenuItem
An item with a checkmark in a Material Design popup menu.
CheckedPopupMenuItemState
Dart’s _CheckedPopupMenuItemState.
Chip
A Material Design chip.
ChipAnimationStyle
Used to override the default chip animations durations.
ChipTheme
Applies a chip theme to descendant Chip widgets.
ChipThemeData
Holds the color, shape, and text styles for a Material widget subtree.
ChoiceChip
A Material Design choice chip.
CircleAvatar
A circle that represents a user.
CircularProgressIndicator
A Material Design circular progress indicator, which spins to indicate that the application is busy.
CircularProgressIndicatorState
Dart’s _CircularProgressIndicatorState.
CloseButton
A Material Design close icon button.
CloseButtonIcon
A “close” icon that’s appropriate for the current TargetPlatform.
ColorScheme
{@template material_ui.color_scheme.ColorScheme} A set of 45 colors based on the Material spec that can be used to configure the color properties of most components. {@endtemplate}
ColorSchemeFromSeedBuilder
Dart’s ColorScheme.fromSeed, collecting what decides the generated colours.
ColorSchemeFromSwatchBuilder
Dart’s ColorScheme.fromSwatch, collecting its arguments.
Colors
Color and ColorSwatch constants which represent Material design’s color palette.
ContrastLevel
Named contrast levels for Material 3 color schemes.
ControlsDetails
All the information necessary to build a Stepper’s forward and backward controls for a given step.
CupertinoBasedMaterialThemeData
A class for creating a Material theme with a color scheme based off of the colors from a CupertinoThemeData. This is intended to be used only in the case when a Material widget is unable to find a Material theme in the tree, but is able to find a Cupertino theme. Most often this will occur when a Material widget is used inside of a CupertinoApp.
DataCell
The data for a cell of a DataTable.
DataColumn
Column configuration for a DataTable.
DataRow
Row configuration and cell data for a DataTable.
DataTable
A Material Design data table.
DataTableTheme
Applies a data table theme to descendant DataTable widgets.
DataTableThemeData
Defines default property values for descendant DataTable widgets.
DatePickerDialog
A Material-style date picker dialog.
DatePickerDialogState
Dart’s _DatePickerDialogState.
DatePickerTheme
An inherited widget that defines the visual properties for [DatePickerDialog]s in this widget’s subtree.
DatePickerThemeData
Defines the visual properties of the widget displayed with showDatePicker and the optional DatePickerTheme ancestor.
DateRangePickerDialog
A Material-style date range picker dialog.
DateRangePickerDialogState
Dart’s _DateRangePickerDialogState.
DateTimeRange
Represents a range of dates, i.e. the span of time from start to end.
DateUtils
Utility functions for working with dates.
DefaultMaterialLocalizations
US English strings for the material widgets.
DefaultTabController
The TabController for descendant widgets that don’t specify one explicitly.
DefaultTabControllerState
Dart’s _DefaultTabControllerState.
DesktopTextSelectionControls
Desktop Material styled text selection controls.
DesktopTextSelectionToolbar
A Material-style desktop text selection toolbar.
DesktopTextSelectionToolbarButton
A TextButton for the Material desktop text selection toolbar.
Dialog
A Material Design dialog.
DialogRoute
A dialog route with Material entrance and exit animations, modal barrier color, and modal barrier behavior (dialog is dismissible with a tap on the barrier).
DialogTheme
Defines a theme for Dialog widgets.
DialogThemeData
Defines default property values for descendant Dialog widgets.
Divider
A thin horizontal line, with padding on either side.
DividerTheme
An inherited widget that defines the configuration for Dividers, VerticalDividers, dividers between ListTiles, and dividers between rows in DataTables in this widget’s subtree.
DividerThemeData
Defines the visual properties of Divider, VerticalDivider, Divider::create_border_side, and ListTile’s dividers.
Drawer
A Material Design panel that slides in horizontally from the edge of a Scaffold to show navigation links in an application.
DrawerButton
A Material Design drawer icon button.
DrawerButtonIcon
A “drawer” icon that’s appropriate for the current TargetPlatform.
DrawerController
Provides interactive behavior for Drawer widgets.
DrawerControllerState
State for a DrawerController.
DrawerHeader
The top-most region of a Material Design drawer. The header’s child widget, if any, is placed inside a Container whose decoration can be passed as an argument, inset by the given padding.
DrawerTheme
An inherited widget that defines visual properties for Drawers in this widget’s subtree.
DrawerThemeData
Defines default property values for descendant Drawer widgets.
DropRangeSliderValueIndicatorShape
The shape of a Material 3 RangeSlider’s value indicators.
DropSliderValueIndicatorShape
The default shape of a Material 3 Slider’s value indicator.
DropdownButton
A Material Design button for selecting from a list of items.
DropdownButtonFormField
A FormField that contains a DropdownButton.
DropdownButtonFormFieldState
Dart’s _DropdownButtonFormFieldState<T>.
DropdownButtonHideUnderline
An inherited widget that causes any descendant DropdownButton widgets to not include their regular underline.
DropdownButtonState
Dart’s _DropdownButtonState<T>.
DropdownMenu
A dropdown menu that can be opened from a TextField. The selected menu item is displayed in that field.
DropdownMenuEntry
Defines a DropdownMenu menu button that represents one item view in the menu.
DropdownMenuFormField
A DropdownMenu that contains a TextField.
DropdownMenuFormFieldState
Dart’s _DropdownMenuFormFieldState.
DropdownMenuItem
An item in a menu created by a DropdownButton.
DropdownMenuState
Dart’s _DropdownMenuState.
DropdownMenuTheme
An inherited widget that defines the visual properties for DropdownMenus in this widget’s subtree.
DropdownMenuThemeData
Overrides the default values of visual properties for descendant DropdownMenu widgets.
ElevatedButton
A Material Design “elevated button”.
ElevatedButtonIcon
Dart’s ElevatedButton.icon(..) arguments; the value converts to the ElevatedButton.
ElevatedButtonStyleFromBuilder
Dart’s ElevatedButton.styleFrom, collecting its arguments; build is the call.
ElevatedButtonTheme
Overrides the default ButtonStyle of its ElevatedButton descendants.
ElevatedButtonThemeData
A ButtonStyle that overrides the default appearance of ElevatedButtons when it’s used with ElevatedButtonTheme or with the overall Theme’s ThemeData::elevated_button_theme.
ElevationOverlay
A utility class for dealing with the overlay color needed to indicate elevation of surfaces.
EndDrawerButton
A Material Design end drawer icon button.
EndDrawerButtonIcon
A “end drawer” icon that’s appropriate for the current TargetPlatform.
ExpandIcon
A widget representing a rotating expand/collapse button. The icon rotates 180 degrees when pressed, then reverts the animation on a second press. The underlying icon is Icons::expand_more.
ExpandIconState
Dart’s _ExpandIconState.
ExpansionPanel
A material expansion panel. It has a header and a body and can be either expanded or collapsed. The body of the panel is only visible when it is expanded.
ExpansionPanelList
A material expansion panel list that lays out its children and animates expansions.
ExpansionPanelListState
Dart’s _ExpansionPanelListState.
ExpansionPanelRadio
An expansion panel that allows for radio-like functionality. This means that at any given time, at most, one ExpansionPanelRadio can remain expanded.
ExpansionTile
A single-line ListTile with an expansion arrow icon that expands or collapses the tile to reveal or hide the children.
ExpansionTileState
Dart’s _ExpansionTileState.
ExpansionTileTheme
Overrides the default ExpansionTileTheme of its ExpansionTile descendants.
ExpansionTileThemeData
Used with ExpansionTileTheme to define default property values for descendant ExpansionTile widgets.
FadeForwardsPageTransitionsBuilder
Used by PageTransitionsTheme to define a horizontal MaterialPageRoute page transition animation that looks like the default page transition used on Android U.
FilledButton
A Material Design filled button.
FilledButtonIcon
Dart’s FilledButton.icon(..) and FilledButton.tonalIcon(..) arguments; the value converts to the FilledButton.
FilledButtonStyleFromBuilder
Dart’s FilledButton.styleFrom, collecting its arguments; build is the call.
FilledButtonTheme
Overrides the default ButtonStyle of its FilledButton descendants.
FilledButtonThemeData
A ButtonStyle that overrides the default appearance of FilledButtons when it’s used with FilledButtonTheme or with the overall Theme’s ThemeData::filled_button_theme.
FilterChip
A Material Design filter chip.
FlexibleSpaceBar
The part of a Material Design AppBar that expands, collapses, and stretches.
FlexibleSpaceBarSettings
Provides sizing and opacity information to a FlexibleSpaceBar.
FlexibleSpaceBarSettingsBuilder
The optional arguments of FlexibleSpaceBar::create_settings.
FlexibleSpaceBarState
Dart’s _FlexibleSpaceBarState.
FloatingActionButton
A Material Design floating action button.
FloatingActionButtonTheme
An inherited widget that defines the configuration for FloatingActionButtons in this widget’s subtree.
FloatingActionButtonThemeData
Defines default property values for descendant FloatingActionButton widgets.
FloatingLabelAlignment
Defines where the floating label should be displayed within an InputDecorator.
GappedRangeSliderTrackShape
The gapped shape of a RangeSlider’s track.
GappedSliderTrackShape
The gapped shape of a Slider’s track.
GregorianCalendarDelegate
A CalendarDelegate for the Gregorian calendar, which is what DateUtils computes in.
GridTile
A tile in a Material Design grid list.
GridTileBar
A header used in a Material Design GridTile.
HandleRangeSliderThumbShape
The bar shape of RangeSlider’s thumbs.
HandleThumbShape
The bar shape of a Slider’s thumb.
IconButton
A Material Design icon button.
IconButtonStyleFromBuilder
Dart’s IconButton.styleFrom, collecting its arguments; build is its body.
IconButtonTheme
Overrides the default ButtonStyle of its IconButton descendants.
IconButtonThemeData
A ButtonStyle that overrides the default appearance of IconButtons when it’s used with the IconButton, the IconButtonTheme or the overall Theme’s ThemeData::icon_button_theme.
Icons
Identifiers for the supported Material Icons.
Ink
A convenience widget for drawing images and other decorations on Material widgets, so that InkWell and InkResponse splashes will render over them.
InkDecoration
A decoration on a part of a Material.
InkFeature
Dart’s abstract InkFeature: a visual reaction on a piece of Material.
InkFeatureData
The fields of Dart’s InkFeature, which every ink feature leaf carries.
InkHighlight
A visual emphasis on a part of a Material receiving user interaction.
InkResponse
An area of a Material that responds to touch. Has a configurable shape and can be configured to clip splashes that extend outside its bounds or not.
InkRipple
A visual reaction on a piece of Material to user input.
InkSparkle
Begin a Material 3 ink sparkle ripple, centered at the tap or click position relative to the reference_box.
InkSplash
A visual reaction on a piece of Material to user input.
InkState
Dart’s _InkState.
InkWell
A rectangular area of a Material that responds to touch.
InputBorderRef
An InputBorder held by value: what a Dart field or parameter typed InputBorder becomes; ShapeBorderRef’s sharing and equality, for the narrower type.
InputChip
A Material Design input chip.
InputDatePickerFormField
A TextFormField configured to accept and validate a date entered by a user.
InputDatePickerFormFieldState
Dart’s _InputDatePickerFormFieldState.
InputDecoration
The border, labels, icons, and styles used to decorate a Material Design text field.
InputDecorationTheme
Defines the default appearance of InputDecorators.
InputDecorationThemeData
Defines the default appearance of InputDecorators.
InputDecorator
Defines the appearance of a Material Design text field.
InputDecoratorState
Dart’s _InputDecoratorState. Its late final fields and the _InputBorderGap its field initializer makes are created in init_state, because an arena object needs the App.
InteractiveInkFeature
Dart’s abstract InteractiveInkFeature: an ink feature that displays a color “splash” in response to a user gesture that can be confirmed or canceled.
InteractiveInkFeatureData
The fields of Dart’s InteractiveInkFeature, which every interactive ink feature leaf carries beside its InkFeatureData.
LinearProgressIndicator
A Material Design linear progress indicator, also known as a progress bar.
LinearProgressIndicatorState
Dart’s _LinearProgressIndicatorState.
ListDetailPaneScaffoldRole
ThreePaneScaffoldRole’s names in a list-detail scaffold.
ListTile
A single fixed-height row that typically contains some text as well as a leading or trailing icon.
ListTileTheme
An inherited widget that defines color and style parameters for ListTiles in this widget’s subtree.
ListTileThemeData
Used with ListTileTheme to define default property values for descendant ListTile widgets, as well as classes that build ListTiles, like CheckboxListTile, RadioListTile, and SwitchListTile.
ListTileThemeMerge
The arguments of Dart’s ListTileTheme.merge, which becomes the widget it returns.
ListTileThemeMergeKind
The kind tag of IntoWidget for a ListTileThemeMerge.
Magnifier
A Material-styled magnifying glass.
Material
A piece of material.
MaterialAccentColor
Defines a single accent color as well a swatch of four shades of the accent color.
MaterialApp
An application that uses Material Design.
MaterialAppState
Dart’s _MaterialAppState.
MaterialBanner
A Material Design banner.
MaterialBannerState
Dart’s _MaterialBannerState.
MaterialBannerTheme
An inherited widget that defines the configuration for MaterialBanners in this widget’s subtree.
MaterialBannerThemeData
Defines the visual properties of MaterialBanner widgets.
MaterialBasedCupertinoThemeData
A CupertinoThemeData that defers unspecified theme attributes to an upstream Material ThemeData.
MaterialButton
A Material Design button.
MaterialColor
Defines a single color as well a color swatch with ten shades of the color.
MaterialGap
A class that represents a gap within MergeableMaterial.
MaterialPage
A page that creates a material style PageRoute.
MaterialPageRoute
A modal route that replaces the entire screen with a platform-adaptive transition.
MaterialPointArcTween
A tween that interpolates an Offset along a circular arc.
MaterialRectArcTween
A tween that interpolates a Rect by having its opposite corners follow circular arcs.
MaterialRectCenterArcTween
A tween that interpolates a Rect by moving it along a circular arc from begin’s Rect::center to end’s Rect::center while interpolating the rectangle’s width and height.
MaterialScrollBehavior
Describes how Scrollable widgets behave for MaterialApps.
MaterialSlice
A class that can be used as a child to MergeableMaterial. It is a slice of Material that animates merging with other slices.
MaterialStateMixinData
The fields of Dart’s MaterialStateMixin, which a state holds under the field material_state.
MaterialStateOutlineInputBorderDeprecated
Defines a OutlineInputBorder that is also a MaterialStateProperty.
MaterialStateUnderlineInputBorderDeprecated
Defines a UnderlineInputBorder that is also a MaterialStateProperty.
MaterialTextSelectionControls
Android Material styled text selection controls.
MaterialTextSelectionHandleControlsDeprecated
Android Material styled text selection handle controls.
MaterialWidgetState
Dart’s _MaterialState; MaterialState is material_state.dart’s name for WidgetState.
MenuAcceleratorCallbackBinding
An InheritedWidget that provides a descendant MenuAcceleratorLabel with the function to invoke when the accelerator is pressed.
MenuAcceleratorLabel
A widget that draws the label text for a menu item (typically a MenuItemButton or SubmenuButton) and renders its child with information about the currently active keyboard accelerator.
MenuAcceleratorLabelState
Dart’s _MenuAcceleratorLabelState.
MenuAnchor
A widget used to mark the “anchor” for a set of submenus, defining the rectangle used to position the menu, which can be done either with an explicit location, or with an alignment.
MenuAnchorState
Dart’s _MenuAnchorState: the state of a MenuAnchor.
MenuBar
A menu bar that manages cascading child menus.
MenuBarTheme
An inherited widget that defines the configuration for the MenuBar widgets in this widget’s descendants.
MenuBarThemeData
A data class that MenuBarTheme uses to define the visual properties of MenuBar widgets.
MenuButtonStyleFromBuilder
Dart’s MenuItemButton.styleFrom(..) and SubmenuButton.styleFrom(..) arguments, which both hand to TextButton.styleFrom; build makes the ButtonStyle.
MenuButtonTheme
Overrides the default ButtonStyle of its MenuItemButton and SubmenuButton descendants.
MenuButtonThemeData
A ButtonStyle theme that overrides the default appearance of SubmenuButtons and MenuItemButtons.
MenuItemButton
A button for use in a MenuBar, in a menu created with MenuAnchor, or on its own, that can be activated by click or keyboard navigation.
MenuItemButtonState
Dart’s _MenuItemButtonState.
MenuStyle
The visual properties that menus have in common.
MenuTheme
An inherited widget that defines the configuration in this widget’s descendants for menus created by the SubmenuButton, MenuBar, or MenuAnchor widgets.
MenuThemeData
Defines the configuration of the submenus created by the SubmenuButton, MenuBar, or MenuAnchor widgets.
MergeableMaterial
Displays a list of MergeableMaterialItem children. The list contains MaterialSlice items whose boundaries are either “merged” with adjacent items or separated by a MaterialGap. The children are distributed along the given main_axis in the same way as the children of a ListBody. When the list of children changes, gaps are automatically animated open or closed as needed.
MergeableMaterialState
Dart’s _MergeableMaterialState.
ModalBottomSheetRoute
A route that represents a Material Design modal bottom sheet.
NavigationBar
Material 3 Navigation Bar component.
NavigationBarTheme
An inherited widget that defines visual properties for NavigationBars and NavigationDestinations in this widget’s subtree.
NavigationBarThemeData
Defines default property values for descendant NavigationBar widgets.
NavigationDestination
A Material 3 NavigationBar destination.
NavigationDrawer
Material Design Navigation Drawer component.
NavigationDrawerDestination
A Material Design NavigationDrawer destination.
NavigationDrawerTheme
An inherited widget that defines visual properties for NavigationDrawers and NavigationDestinations in this widget’s subtree.
NavigationDrawerThemeData
Defines default property values for descendant NavigationDrawer widgets.
NavigationIndicator
Selection Indicator for the Material 3 NavigationBar and NavigationRail components.
NavigationRail
A Material Design widget that is meant to be displayed at the left or right of an app to navigate between a small number of views, typically between three and five.
NavigationRailDestination
Defines a NavigationRail button that represents one “destination” view.
NavigationRailState
Dart’s _NavigationRailState.
NavigationRailTheme
An inherited widget that defines visual properties for NavigationRails and NavigationRailDestinations in this widget’s subtree.
NavigationRailThemeData
Defines default property values for descendant NavigationRail widgets.
NavigationSuiteColors
Compose’s NavigationSuiteColors: the container colour of each navigation widget the suite can show. None keeps the widget’s own, from its theme or Material’s defaults, as Compose’s NavigationSuiteDefaults.colors() does; Colors::TRANSPARENT shows the suite’s container.
NavigationSuiteDestination
One destination in a navigation suite.
NavigationSuiteScaffold
Content beside a bar, rail or drawer built from one list of destinations.
NoSplash
An InteractiveInkFeature that doesn’t paint a splash.
OutlineInputBorder
Draws a rounded rectangle around an InputDecorator’s container.
OutlinedButton
A Material Design “Outlined Button”; essentially a TextButton with an outlined border.
OutlinedButtonIcon
Dart’s OutlinedButton.icon(..) arguments; the value converts to the OutlinedButton.
OutlinedButtonStyleFromBuilder
Dart’s OutlinedButton.styleFrom(..) arguments; build makes the ButtonStyle.
OutlinedButtonTheme
Overrides the default ButtonStyle of its OutlinedButton descendants.
OutlinedButtonThemeData
A ButtonStyle that overrides the default appearance of OutlinedButtons when it’s used with OutlinedButtonTheme or with the overall Theme’s ThemeData::outlined_button_theme.
PaddleRangeSliderValueIndicatorShape
A variant shape of a RangeSlider’s value indicators. The value indicator is in the shape of an upside-down pear.
PaddleSliderValueIndicatorShape
A variant shape of a Slider’s value indicator . The value indicator is in the shape of an upside-down pear.
PageTransitionsTheme
Defines the page transition animations used by MaterialPageRoute for different TargetPlatforms.
PaginatedDataTable
A table that follows the Material 2 design guidelines, with pagination.
PaginatedDataTableState
The state of a PaginatedDataTable; Dart’s PaginatedDataTableState.
Pane
One pane’s content, the size it asks for, its margins and its shape.
PaneScaffoldDirective
How many panes the window has room for, and how they are spaced.
PersistentBottomSheetController
A ScaffoldFeatureController for standard bottom sheets.
PlatformAdaptiveIcons
A set of platform-adaptive Material Design icons.
PopupMenuButton
Displays a menu when pressed and calls on_selected when the menu is dismissed because an item was selected. The value passed to on_selected is the value of the selected menu item.
PopupMenuButtonState
The State for a PopupMenuButton.
PopupMenuDivider
A horizontal divider in a Material Design popup menu.
PopupMenuDividerState
Dart’s _PopupMenuDividerState.
PopupMenuEntryRef
A PopupMenuEntry held as a value: the erased widget, whose height and values are still answered by the entry it holds. Dart types such a value PopupMenuEntry<T>.
PopupMenuEntryRefKind
The kind tag of IntoWidget for a PopupMenuEntryRef.
PopupMenuItem
An item in a Material Design popup menu.
PopupMenuItemData
The fields of Dart’s PopupMenuItem<T>, which PopupMenuItem and its subclasses, such as CheckedPopupMenuItem, carry under the field popup_menu_item.
PopupMenuItemState
The State for PopupMenuItem subclasses.
PopupMenuTheme
An inherited widget that defines the configuration for popup menus in this widget’s subtree.
PopupMenuThemeData
Defines the visual properties of the routes used to display popup menus as well as PopupMenuItem and PopupMenuDivider widgets.
PredictiveBackFullscreenPageTransitionsBuilder
Used by PageTransitionsTheme to define a MaterialPageRoute page transition animation that looks like Android’s Full Screen page transition.
PredictiveBackPageTransitionsBuilder
Used by PageTransitionsTheme to define a MaterialPageRoute page transition animation that looks like the default page transition used on Android U and above when using predictive back.
ProgressIndicatorData
The fields of Dart’s abstract ProgressIndicator, a base class for Material Design progress indicators, which every indicator carries under the field progress_indicator.
ProgressIndicatorTheme
An inherited widget that defines the configuration for ProgressIndicators in this widget’s subtree.
ProgressIndicatorThemeData
Overrides the default values of visual properties for descendant ProgressIndicator widgets.
Radio
A Material Design radio button.
RadioListTile
A ListTile with a Radio. In other words, a radio button with a label.
RadioListTileState
Dart’s _RadioListTileState; public because RadioListTile’s StatefulWidget::State names it.
RadioMenuButton
A menu item that combines a Radio widget with a MenuItemButton.
RadioState
Dart’s _RadioState; public because Radio’s StatefulWidget::State names it.
RadioTheme
Applies a radio theme to descendant Radio widgets.
RadioThemeData
Defines default property values for descendant Radio widgets.
RangeLabels
Object for setting range slider label values that appear in the value indicator for each thumb.
RangeSlider
A Material Design range slider.
RangeSliderState
Dart’s _RangeSliderState.
RangeValues
Object for representing range slider thumb values.
RawChip
A raw material design chip.
RawChipState
Dart’s _RawChipState.
RawMaterialButton
Creates a button based on Semantics, Material, and InkWell widgets.
RawMaterialButtonState
Dart’s _RawMaterialButtonState.
RectangularRangeSliderTrackShape
A RangeSlider track that’s a simple rectangle.
RectangularRangeSliderValueIndicatorShape
The default shape of a RangeSlider’s value indicators.
RectangularSliderTrackShape
A Slider track that’s a simple rectangle.
RectangularSliderValueIndicatorShape
The default shape of a Slider’s value indicator.
RefreshIndicator
A widget that supports the Material “swipe to refresh” idiom.
RefreshIndicatorState
Contains the state for a RefreshIndicator. This class can be used to programmatically show the refresh indicator, see show.
RefreshProgressIndicator
An indicator for the progress of refreshing the contents of a widget.
RefreshProgressIndicatorState
Dart’s _RefreshProgressIndicatorState, which extends _CircularProgressIndicatorState through [CircularProgressIndicatorStateBase].
ReorderableListView
A list whose items the user can interactively reorder by dragging.
ReorderableListViewState
Dart’s _ReorderableListViewState.
RestorableTimeOfDay
A RestorableValue that knows how to save and restore TimeOfDay.
RoundRangeSliderThumbShape
The default shape of a RangeSlider’s thumbs.
RoundRangeSliderTickMarkShape
The default shape of each RangeSlider tick mark.
RoundSliderOverlayShape
The default shape of a Slider’s thumb overlay.
RoundSliderThumbShape
The default shape of a Slider’s thumb.
RoundSliderTickMarkShape
The default shape of each Slider tick mark.
RoundedRectRangeSliderTrackShape
The default shape of a RangeSlider’s track.
RoundedRectRangeSliderValueIndicatorShape
The rounded rectangle shape of a RangeSlider’s value indicators.
RoundedRectSliderTrackShape
The default shape of a Slider’s track.
RoundedRectSliderValueIndicatorShape
The rounded rectangle shape of a Slider’s value indicator.
Scaffold
Implements the basic Material Design visual layout structure.
ScaffoldFeatureController
An interface for controlling a feature of a Scaffold.
ScaffoldGeometry
Geometry information for Scaffold components after layout is finished.
ScaffoldGeometryNotifier
Dart’s _ScaffoldGeometryNotifier: the ScaffoldGeometry a scaffold publishes to Scaffold::geometry_of as its layout and its floating action button’s scale change.
ScaffoldMessenger
Manages SnackBars and MaterialBanners for descendant Scaffolds.
ScaffoldMessengerState
State for a ScaffoldMessenger.
ScaffoldPrelayoutGeometry
The geometry of the Scaffold after all its contents have been laid out except the FloatingActionButton.
ScaffoldState
State for a Scaffold.
Scrollbar
A Material Design scrollbar.
ScrollbarTheme
Applies a scrollbar theme to descendant Scrollbar widgets.
ScrollbarThemeData
Defines default property values for descendant Scrollbar widgets.
SearchAnchor
Creates a search bar that when focused opens a search view to input a search query.
SearchAnchorState
Dart’s _SearchAnchorState.
SearchAnchorWithSearchBar
Dart’s _SearchAnchorWithSearchBar, the object SearchAnchor.bar(..) makes: a SearchAnchor whose anchor is a SearchBar that opens the search view itself.
SearchBar
A Material Design search bar.
SearchBarState
Dart’s _SearchBarState.
SearchBarTheme
Applies a search bar theme to descendant SearchBar widgets.
SearchBarThemeData
Defines default property values for descendant SearchBar widgets.
SearchController
A controller to manage a search view created by SearchAnchor.
SearchDelegateData
The state of a SearchDelegate that Dart keeps in the delegate’s fields: every delegate holds one, and answers it from SearchDelegate::search_delegate_data.
SearchPageRoute
Dart’s _SearchPageRoute.
SearchViewTheme
An inherited widget that defines the visual properties for SearchAnchors’ search views in this widget’s subtree.
SearchViewThemeData
Defines the configuration of the search views created by the SearchAnchor widget.
SegmentedButton
A Material button that allows the user to select from limited set of options.
SegmentedButtonState
State for SegmentedButton.
SegmentedButtonStyleFromBuilder
Dart’s SegmentedButton.styleFrom(..) arguments; build makes the ButtonStyle.
SegmentedButtonTheme
An inherited widget that defines the visual properties for SegmentedButtons in this widget’s subtree.
SegmentedButtonThemeData
Overrides the default values of visual properties for descendant SegmentedButton widgets.
SelectableText
A run of selectable text with a single style.
SelectableTextState
Dart’s _SelectableTextState.
SelectionArea
A widget that introduces an area for user selections with adaptive selection controls.
SelectionAreaState
State for a SelectionArea.
ShapeBorderTween
An interpolation between two [ShapeBorder]s.
ShapedInputBorder
Draws a custom shape around an InputDecorator’s container.
ShowAdaptiveDialog
Builder for a dialog that is Material or Cupertino by platform, in place of Dart’s named arguments.
ShowBottomSheet
Shows a Material Design bottom sheet in the nearest Scaffold ancestor. To show a persistent bottom sheet, use the Scaffold::bottom_sheet.
ShowDatePicker
Shows a dialog containing a Material Design date picker.
ShowDateRangePicker
Shows a full screen modal dialog containing a Material Design date range picker.
ShowDialog
Displays a Material dialog above the current contents of the app, with Material entrance and exit animations, modal barrier color, and modal barrier behavior (dialog is dismissible with a tap on the barrier).
ShowMenu
Show a popup menu that contains the items at position.
ShowModalBottomSheet
Shows a modal Material Design bottom sheet.
ShowSearch
Shows a full screen search page and returns the search result selected by the user when the page is closed.
ShowTimePicker
Shows a dialog containing a Material Design time picker.
SimpleDialog
A simple Material Design dialog.
SimpleDialogOption
An option used in a SimpleDialog.
Slider
A Material Design slider.
SliderState
Dart’s _SliderState.
SliderTheme
Applies a slider theme to descendant Slider widgets.
SliderThemeData
Overrides the default values of visual properties for descendant Slider widgets.
SliverAppBar
A Material Design app bar that integrates with a CustomScrollView.
SliverAppBarState
Dart’s _SliverAppBarState.
SnackBar
A lightweight message with an optional action which briefly displays at the bottom of the screen.
SnackBarAction
A button for a SnackBar, known as an “action”.
SnackBarActionState
Dart’s _SnackBarActionState.
SnackBarState
Dart’s _SnackBarState.
SnackBarTheme
An inherited widget that defines the configuration for SnackBars in this widget’s subtree.
SnackBarThemeData
Customizes default property values for SnackBar widgets.
SpellCheckSuggestionsToolbar
The default spell check suggestions toolbar for Android.
SpellCheckSuggestionsToolbarLayoutDelegate
Positions the toolbar below anchor or adjusts it higher to fit above the bottom view insets, if applicable.
SplitButtonDefaults
Compose’s SplitButtonDefaults: the token values, and the shapes, paddings and icon sizes chosen for a part’s height.
SplitButtonLayout
Compose’s SplitButtonLayout: the leading part, the trailing part, and the spacing between them, at one height.
SplitButtonLeadingButton
The leading part of a split button: Compose’s SplitButtonDefaults.LeadingButton and its tonal, outlined and elevated companions.
SplitButtonShapes
Compose’s SplitButtonShapes: the shapes a part morphs between as it is pressed, checked or rested.
SplitButtonTrailingButton
The trailing part of a split button: Compose’s SplitButtonDefaults.TrailingButton and its tonal, outlined and elevated companions, both as a plain button and as a toggle.
Step
A material step used in Stepper. The step can have a title and subtitle, an icon within its circle, some content and a state that governs its styling.
StepStyle
Used to override the default visual properties of Step widgets within a Stepper.
Stepper
A material stepper widget that displays progress through a sequence of steps.
StepperState
Dart’s _StepperState.
SubmenuButton
A menu button that displays a cascading menu.
SubmenuButtonState
Dart’s _SubmenuButtonState.
SupportingPaneScaffoldRole
ThreePaneScaffoldRole’s names in a supporting-pane scaffold.
Switch
A Material Design switch.
SwitchListTile
A ListTile with a Switch. In other words, a switch with a label.
SwitchTheme
Applies a switch theme to descendant Switch widgets.
SwitchThemeData
Defines default property values for descendant Switch widgets.
Tab
A Material Design TabBar tab.
TabBar
A Material Design primary tab bar.
TabBarScrollController
The ScrollController for a TabBar widget.
TabBarState
Dart’s _TabBarState.
TabBarTheme
Defines default property values for descendant TabBar widgets.
TabBarThemeData
Defines default property values for descendant TabBar widgets.
TabBarView
A page view that displays the widget which corresponds to the currently selected tab.
TabBarViewState
Dart’s _TabBarViewState.
TabController
Coordinates tab selection between a TabBar and a TabBarView.
TabPageSelector
Uses TabPageSelectorIndicator to display a row of small circular indicators, one per tab.
TabPageSelectorIndicator
Displays a single circle with the specified size, border style, border color and background colors.
TabPageSelectorState
Dart’s _TabPageSelectorState.
TableRowInkWell
An ink well for the cells of a DataTable row that paints its highlight across the whole row.
TextButton
A Material Design “Text Button”.
TextButtonIcon
Dart’s TextButton.icon(..) arguments; the value converts to the TextButton.
TextButtonStyleFromBuilder
Dart’s TextButton.styleFrom(..) arguments; build makes the ButtonStyle.
TextButtonTheme
Overrides the default ButtonStyle of its TextButton descendants.
TextButtonThemeData
A ButtonStyle that overrides the default appearance of TextButtons when it’s used with TextButtonTheme or with the overall Theme’s ThemeData::text_button_theme.
TextField
A Material Design text field.
TextFieldState
Dart’s _TextFieldState.
TextFormField
A FormField that contains a TextField.
TextFormFieldState
Dart’s _TextFormFieldState.
TextMagnifier
A Magnifier positioned by rules dictated by the native Android magnifier.
TextMagnifierState
Dart’s _TextMagnifierState.
TextSelectionTheme
An inherited widget that defines the appearance of text selection in this widget’s subtree.
TextSelectionThemeData
Defines the text selection visual properties for descendant TextField and SelectableText widgets.
TextSelectionToolbar
A fully-functional Material-style text selection toolbar.
TextSelectionToolbarTextButton
A button styled like a Material native Android text selection menu button.
TextTheme
Material design text theme.
TextThemeApply
Dart TextTheme.apply named optionals.
Theme
Applies a theme to descendant widgets.
ThemeData
Defines the configuration of the overall visual Theme for a MaterialApp or a widget subtree within the app.
ThemeDataBuilder
Dart’s ThemeData factory constructor, collecting its named arguments; build fills every field the caller left out.
ThemeDataCopyWith
Dart’s ThemeData.copyWith named arguments over the theme they copy; build applies brightness to the colour scheme, whichever order the two were given in.
ThemeDataFromBuilder
Dart’s ThemeData.from named arguments.
ThemeDataTween
An interpolation between two ThemeDatas.
ThreePaneNavigator
A Navigator whose pages follow an app’s back stack, grouped by a ThreePaneSceneStrategy.
ThreePaneNavigatorState
The navigator’s key, and the strategy of the last build: when it changes, the window regrouped the same entries.
ThreePaneScaffold
Up to three panes laid out from a directive and a value.
ThreePaneScaffoldAdaptStrategies
One AdaptStrategy per pane role.
ThreePaneScaffoldDestinationItem
One back-stack entry as the pane scaffold sees it: the pane it fills, and what it shows there.
ThreePaneScaffoldHorizontalOrder
The order of a pane scaffold’s three panes, from start to end.
ThreePaneScaffoldScene
The trailing back-stack entries one page shows together, and what back does to them.
ThreePaneScaffoldState
The springs a ThreePaneScaffold moves its panes on, and each pane’s motion.
ThreePaneScaffoldValue
Which panes the current window shows.
ThreePaneSceneStrategy
How the trailing pane entries of a back stack share one page.
TimeOfDay
A value representing a time during the day, independent of the date that day might fall on or the time zone.
TimePickerDialog
A Material Design time picker designed to appear inside a popup dialog.
TimePickerDialogState
Dart’s _TimePickerDialogState.
TimePickerTheme
An inherited widget that defines the configuration for time pickers displayed using showTimePicker in this widget’s subtree.
TimePickerThemeData
Defines the visual properties of the widget displayed with showTimePicker.
ToggleButtons
A set of toggle buttons.
ToggleButtonsTheme
An inherited widget that defines color and border parameters for ToggleButtons in this widget’s subtree.
ToggleButtonsThemeData
Defines default property values for descendant ToggleButtons widgets.
Tooltip
A Material Design tooltip.
TooltipState
Contains the state for a Tooltip.
TooltipTheme
Applies a tooltip theme to descendant Tooltip widgets.
TooltipThemeData
Defines default property values for descendant Tooltip widgets.
TooltipVisibility
Overrides the visibility of descendant Tooltip widgets.
Typography
The color and geometry TextThemes for Material apps.
TypographyBuilder
Dart’s Typography.material2014 and Typography.material2018 arguments; the two factories differ only in their default geometry text themes.
TypographyMaterial2021Builder
Dart’s Typography.material2021 arguments.
UnderlineInputBorder
Draws a horizontal line at the bottom of an InputDecorator’s container and defines the container’s shape.
UnderlineTabIndicator
Used with TabBar::indicator to draw a horizontal line below the selected tab.
UserAccountsDrawerHeader
A Material Design drawer header that identifies the app’s user.
UserAccountsDrawerHeaderState
Dart’s _UserAccountsDrawerHeaderState.
VerticalDivider
A thin vertical line, with padding on either side.
VisualDensity
Defines the visual density of user interface components.
WidgetStateInputBorder
Defines an InputBorder that is also a WidgetStateProperty.
WindowSizeClass
The classes of a window’s width and height.
YearPicker
A scrollable grid of years to allow picking a year.
YearPickerState
Dart’s _YearPickerState.
ZoomPageTransitionsBuilder
Used by PageTransitionsTheme to define a zooming MaterialPageRoute page transition animation that looks like the default page transition used on Android Q.

Enums§

AdaptStrategy
What a pane does when there is no partition left for it.
BackNavigationBehavior
How a back gesture moves through a pane scene’s entries.
BottomNavigationBarLandscapeLayout
Refines the layout of a BottomNavigationBar when the enclosing MediaQueryData::orientation is Orientation::Landscape.
BottomNavigationBarType
Defines the layout and behavior of a BottomNavigationBar.
ButtonBarLayoutBehavior
Used with ButtonTheme and ButtonThemeData to define how the button bar should size itself with either constraints or internal padding.
ButtonShapeVariant
Defines shape variants for Material 3 Expressive button components.
ButtonSizeVariant
Defines size variants for Material 3 Expressive button components.
ButtonTextTheme
Used with ButtonTheme and ButtonThemeData to define a button’s base colors, and the defaults for the button’s minimum size, internal padding, and shape.
CollapseMode
The collapsing effect while the space bar collapses from its full size.
DatePickerEntryMode
Initial display mode of the date picker dialog.
DatePickerMode
Initial display of a calendar date picker.
DayPeriod
Whether the TimeOfDay is before or after noon.
DrawerAlignment
The possible alignments of a Drawer.
DropdownMenuCloseBehavior
Defines the behavior for closing the dropdown menu when an item is selected.
Durations
The set of durations in the Material specification.
DynamicSchemeVariant
The algorithm used to construct a ColorScheme in ColorScheme::from_seed.
Easing
The set of easing curves in the Material specification.
FloatingLabelBehavior
Defines how the floating label should behave.
HourFormat
Describes how hours are formatted.
IconAlignment
Determines the alignment of the icon within the widgets such as:
IconButtonWidthVariant
Defines the width variants for Material 3 Expressive IconButton.
ListTileControlAffinity
Where to place the control in widgets that use ListTile to position a control next to a label.
ListTileStyle
Defines the title font used for ListTile descendants of a ListTileTheme.
ListTileTitleAlignment
Defines how ListTile::leading and ListTile::trailing are vertically aligned relative to the ListTile’s titles (ListTile::title and ListTile::subtitle).
MaterialBannerClosedReason
Specify how a MaterialBanner was closed.
MaterialTapTargetSize
Configures the tap target and layout size of certain Material widgets.
MaterialType
The various kinds of material in Material Design. Used to configure the default behavior of Material widgets.
MergeableMaterialItem
The base type for MaterialSlice and MaterialGap.
NavigationDestinationLabelBehavior
Specifies when each NavigationDestination’s label should appear.
NavigationItemVerticalArrangement
Compose’s navigationItemVerticalArrangement: where a rail’s destinations sit along its height.
NavigationRailLabelType
Defines the behavior of the labels of a NavigationRail.
NavigationSuiteType
What a NavigationSuiteScaffold shows its destinations in.
PaneAdaptedValue
How one pane is shown in the current layout.
PanePreferredSize
The size a pane asks for.
PopupMenuPosition
Used to configure how the PopupMenuButton positions its popup menu.
RefreshIndicatorStatus
Indicates current status of Material RefreshIndicator.
RefreshIndicatorTriggerMode
Used to configure how RefreshIndicator can be triggered.
ScriptCategory
A characterization of the of a TextTheme’s glyphs that is used to define its localized TextStyle geometry for ThemeData.text_theme.
ShowValueIndicator
Describes the conditions under which the value indicator on a Slider will be shown. Used in Slider::show_value_indicator and SliderThemeData::show_value_indicator.
SliderInteraction
Possible ways for a user to interact with a Slider.
SnackBarBehavior
Defines where a SnackBar should appear within a Scaffold and how its location should be adjusted when the scaffold also includes a FloatingActionButton or a BottomNavigationBar.
SnackBarClosedReason
Specify how a SnackBar was closed.
SplitButtonVariant
The four button styles a split button’s part can take, one per *SplitButton in Compose.
Springs
The set of springs in the Material specification.
StepState
The state of a Step, which is used to control the style of the circle and text.
StepperType
Defines the Stepper’s main axis.
StretchMode
The stretching effect while the space bar stretches beyond its full size.
StyleVariant
Defines the Material Design style variant used by Material components.
TabAlignment
Defines how tabs are aligned horizontally in a TabBar.
TabBarIndicatorSize
Defines how the bounds of the selected tab indicator are computed.
TabIndicatorAnimation
Defines how the tab indicator animates when the selected tab changes.
ThemeMode
Describes which theme will be used by MaterialApp.
ThreePaneScaffoldRole
The role of one pane in a three-pane scaffold.
Thumb
Identifier for a thumb.
TimeOfDayFormat
Determines how the time picker invoked using showTimePicker formats and lays out the time controls.
TimePickerEntryMode
Dart’s TimePickerEntryMode: the ways a time picker dialog can be shown.
WindowHeightSizeClass
Material’s height breakpoints, in logical pixels.
WindowWidthSizeClass
Material’s width breakpoints, in logical pixels.

Constants§

IOS_HORIZONTAL_OFFSET
An eyeballed value that moves the cursor slightly left of where it is rendered for text on Android so its positioning more accurately matches the native iOS text cursor positioning.
K_BOTTOM_NAVIGATION_BAR_HEIGHT
The height of the bottom navigation bar.
K_DEFAULT_ICON_DARK_COLOR
The default color for ThemeData.iconTheme when ThemeData.brightness is Brightness.light. This color is used in IconButton to detect whether IconTheme.of(context).color is the same as the default color of ThemeData.iconTheme.
K_DEFAULT_ICON_LIGHT_COLOR
The default color for ThemeData.iconTheme when ThemeData.brightness is Brightness.dark. This color is used in IconButton to detect whether IconTheme.of(context).color is the same as the default color of ThemeData.iconTheme.
K_FLOATING_ACTION_BUTTON_MARGIN
The margin that a FloatingActionButton should leave between it and the edge of the screen.
K_FLOATING_ACTION_BUTTON_SEGUE
The amount of time the FloatingActionButton takes to transition in or out.
K_FLOATING_ACTION_BUTTON_TURN_INTERVAL
The fraction of a circle the FloatingActionButton should turn when it enters.
K_MATERIAL_LIST_PADDING
The padding added around material list items.
K_MINI_BUTTON_OFFSET_ADJUSTMENT
If a FloatingActionButton is used on a Scaffold in certain positions, it is moved K_MINI_BUTTON_OFFSET_ADJUSTMENT pixels closer to the edge of the screen.
K_MIN_INTERACTIVE_DIMENSION
The minimum dimension of any interactive region according to Material guidelines.
K_RADIAL_REACTION_ALPHA
The value of the alpha channel to use when drawing a circular material ink response.
K_RADIAL_REACTION_DURATION
The amount of time a circular material ink response should take to expand to its full size.
K_RADIAL_REACTION_RADIUS
The default radius of a circular material ink response in logical pixels.
K_TAB_LABEL_PADDING
The horizontal padding included by Tabs.
K_TAB_SCROLL_DURATION
The duration of the horizontal scroll animation that occurs when a tab is tapped.
K_TEXT_TAB_BAR_HEIGHT
The height of a tab bar containing text.
K_THEME_ANIMATION_DURATION
The duration over which theme changes animate by default.
K_THEME_CHANGE_DURATION
The amount of time theme change animations should last.
K_TOOLBAR_HEIGHT
The height of the toolbar component of the AppBar.

Traits§

Adaptation
Defines a customized theme for components with an adaptive factory constructor.
AppBarThemeDataGetters
Dart’s getters of AppBarThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
BadgeThemeDataGetters
Dart’s getters of BadgeThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
BaseRangeSliderTrackShape
Base range slider track shape that provides an implementation of get_preferred_rect for default sizing.
BaseSliderTrackShape
Base track shape that provides an implementation of get_preferred_rect for default sizing.
BottomSheetThemeDataGetters
Dart’s getters of BottomSheetThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
ButtonStyleButton
The base widget for buttons whose style is defined by a ButtonStyle object; Dart’s abstract ButtonStyleButton, whose state is ButtonStyleState.
ButtonStyleGetters
Dart’s getters of ButtonStyle: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
CalendarDelegate
A delegate that handles all of the calendar operations a date picker needs: formatting, parsing and the arithmetic on months and days.
CardThemeDataGetters
Dart’s getters of CardThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
CheckboxThemeDataGetters
Dart’s getters of CheckboxThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
CheckmarkableChipAttributes
An interface for Material Design chips that can have check marks.
ChipAttributes
An interface defining the base attributes for a Material Design chip.
ChipThemeDataGetters
Dart’s getters of ChipThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _ChipDefaultsM3(context, isEnabled) and its kin) computes the ones it overrides when they are read.
DataTableSource
A data source for obtaining row data for PaginatedDataTable objects.
DatePickerThemeDataGetters
Dart’s getters of DatePickerThemeData: the theme data answers with its fields, and a defaults subclass (_DatePickerDefaultsM3(context), _DatePickerDefaultsM2(context)) computes the ones it overrides when they are read.
DeletableChipAttributes
An interface for Material Design chips that can be deleted.
DialogThemeDataGetters
Dart’s getters of DialogThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
DisabledChipAttributes
An interface for Material Design chips that can be enabled and disabled.
DividerThemeDataGetters
Dart’s getters of DividerThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
DrawerThemeDataGetters
Dart’s getters of DrawerThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
DropdownMenuThemeDataGetters
Dart’s getters of DropdownMenuThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
ExpansionTileThemeDataGetters
Dart’s getters of ExpansionTileThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
FabCenterOffsetX
Mixin for a “center” floating action button location, such as <dyn FloatingActionButtonLocation>::center_float().
FabContainedOffsetY
Mixin for a “contained” floating action button location, such as <dyn FloatingActionButtonLocation>::end_contained().
FabDockedOffsetY
Mixin for a “docked” floating action button location, such as <dyn FloatingActionButtonLocation>::end_docked().
FabEndOffsetX
Mixin for an “end” floating action button location, such as <dyn FloatingActionButtonLocation>::end_docked().
FabFloatOffsetY
Mixin for a “float” floating action button location, such as <dyn FloatingActionButtonLocation>::center_float().
FabMiniOffsetAdjustment
Mixin for a “mini” floating action button location, such as <dyn FloatingActionButtonLocation>::mini_start_top().
FabStartOffsetX
Mixin for a “start” floating action button location, such as <dyn FloatingActionButtonLocation>::start_top().
FabTopOffsetY
Mixin for a “top” floating action button location, such as <dyn FloatingActionButtonLocation>::start_top().
FloatingActionButtonAnimator
Provider of animations to move the FloatingActionButton between FloatingActionButtonLocations.
FloatingActionButtonLocation
An object that defines a position for the FloatingActionButton based on the Scaffold’s ScaffoldPrelayoutGeometry.
FloatingActionButtonThemeDataGetters
Dart’s getters of FloatingActionButtonThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
InkFeatureLeaf
The virtuals of Dart’s abstract InkFeature, which a leaf implements.
InkFeatureLeafData
The InkFeatureData bag of every ink feature leaf.
InkFeatureObject
Mints the erased AnyInkFeature of a leaf.
InputBorder
Defines the appearance of an InputDecorator’s border.
InputDecorationThemeDataGetters
Dart’s getters of InputDecorationThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
InteractiveInkFeatureFactory
An encapsulation of an InteractiveInkFeature constructor used by InkWell, InkResponse, and ThemeData.
InteractiveInkFeatureLeaf
The virtuals of Dart’s abstract InteractiveInkFeature: an ink feature that displays a color “splash” in response to a user gesture that can be confirmed or canceled.
InteractiveInkFeatureLeafData
The InteractiveInkFeatureData bag of every interactive ink feature leaf.
InteractiveInkFeatureObject
Mints the erased AnyInteractiveInkFeature of a leaf.
ListTileThemeDataGetters
Dart’s getters of ListTileThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
MaterialBannerThemeDataGetters
Dart’s getters of MaterialBannerThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
MaterialInkController
An interface for creating InkSplashs and InkHighlights on a Material.
MaterialLocalizations
Defines the localized resource values used by the Material widgets.
MaterialRouteTransition
MaterialRouteTransitionMixin on a shared reference: what Dart’s route is MaterialRouteTransitionMixin produces, read as route.interface::<Rc<dyn MaterialRouteTransition>>() on an AnyRoute. Every route that implements the mixin is one through its handle.
MaterialRouteTransitionMixin
A mixin that provides platform-adaptive transitions for a PageRoute.
MaterialStateMixin
Mixin for State classes that require knowledge of changing WidgetState values for their child widgets.
MenuStyleGetters
Dart’s getters of MenuStyle: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
NavigationBarThemeDataGetters
Dart’s getters of NavigationBarThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
NavigationDrawerThemeDataGetters
Dart’s getters of NavigationDrawerThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
NavigationRailThemeDataGetters
Dart’s getters of NavigationRailThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
PopupMenuEntry
A base class for entries in a Material Design popup menu.
PopupMenuItemLeaf
The trait every popup-menu-item widget implements: PopupMenuItem and its subclasses, such as CheckedPopupMenuItem. Dart’s W extends PopupMenuItem<T>.
PopupMenuItemStateLeaf
The trait every popup-menu-item state implements: PopupMenuItemState and its subclasses, such as CheckedPopupMenuItem’s state.
PopupMenuThemeDataGetters
Dart’s getters of PopupMenuThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
ProgressIndicator
A base class for Material Design progress indicators: Dart’s abstract ProgressIndicator, whose fields are ProgressIndicatorData.
ProgressIndicatorThemeDataGetters
Dart’s getters of ProgressIndicatorThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
RadioThemeDataGetters
Dart’s getters of RadioThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
RangeSliderThumbShape
Base class for RangeSlider thumb shapes.
RangeSliderTickMarkShape
Base class for RangeSlider tick mark shapes.
RangeSliderTrackShape
Base class for RangeSlider track shapes.
RangeSliderValueIndicatorShape
Base class for RangeSlider value indicator shapes.
SearchBarThemeDataGetters
Dart’s getters of SearchBarThemeData: the theme data answers with its fields, and _SearchBarDefaultsM3(context) computes the ones it overrides when they are read.
SearchDelegate
Delegate for ShowSearch to define the content of the search page.
SearchViewThemeDataGetters
Dart’s getters of SearchViewThemeData: the theme data answers with its fields, and _SearchViewDefaultsM3(context, isFullScreen:) computes the ones it overrides when they are read.
SegmentedButtonThemeDataGetters
Dart’s getters of SegmentedButtonThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _SegmentedButtonDefaultsM3(context)) computes the ones it overrides when they are read.
SelectableChipAttributes
An interface for Material Design chips that can be selected.
SliderComponentShape
Base class for slider thumb, thumb overlay, and value indicator shapes.
SliderThemeDataGetters
Dart’s getters of SliderThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
SliderTickMarkShape
Base class for Slider tick mark shapes.
SliderTrackShape
Base class for slider track shapes.
SnackBarThemeDataGetters
Dart’s getters of SnackBarThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
StandardFabLocation
A base trait that simplifies building FloatingActionButtonLocations when used with the mixins FabTopOffsetY, FabFloatOffsetY, FabDockedOffsetY, FabStartOffsetX, FabCenterOffsetX, FabEndOffsetX, and FabMiniOffsetAdjustment.
SwitchThemeDataGetters
Dart’s getters of SwitchThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
TabBarThemeDataGetters
Dart’s getters of TabBarThemeData: the theme data answers with its fields, and a defaults subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they are read.
TappableChipAttributes
An interface for Material Design chips that can be pressed.
ThemeExtension
An interface that defines custom additions to a ThemeData object.
TimePickerThemeDataGetters
Dart’s getters of TimePickerThemeData, as the lazy-defaults trait: the theme data answers with its fields, and the time picker’s defaults (_TimePickerDefaultsM3) answer with computed values.

Functions§

accelerate_easingDeprecated
The accelerate easing curve in the Material 2 specification.
debug_check_has_material
Asserts that the given context has a Material ancestor within the closest LookupBoundary.
debug_check_has_material_localizations
Asserts that the given context has a Localizations ancestor that contains a MaterialLocalizations delegate.
debug_check_has_scaffold
Asserts that the given context has a Scaffold ancestor.
debug_check_has_scaffold_messenger
Asserts that the given context has a ScaffoldMessenger ancestor.
decelerate_easingDeprecated
The decelerate easing curve in the Material 2 specification.
default_app_bar_theme
SearchDelegate::app_bar_theme’s default, which a delegate that overrides the method reaches as Dart’s super.appBarTheme(context).
desktop_text_selection_controls
Desktop text selection controls that loosely follow Material design conventions.
desktop_text_selection_handle_controls
Desktop text selection handle controls that loosely follow Material design conventions.
hour_format
The HourFormat used for the given TimeOfDayFormat.
install_material_icon_font
Registers the bundled Material Icons font with the app-wide font collection, which is what uses-material-design: true in pubspec.yaml does in Flutter.
k_elevation_to_shadow
Map of elevation offsets used by Material Design to BoxShadow definitions.
k_material_edges
The border radii used by the various kinds of material in Material Design.
material_text_selection_controls
Text selection controls that follow the Material Design specification.
material_text_selection_handle_controls
Text selection handle controls that follow the Material Design specification.
standard_easingDeprecated
The standard easing curve in the Material 2 specification.

Type Aliases§

BottomSheetDragEndHandler
A callback for when the user stops dragging the bottom sheet.
BottomSheetDragStartHandler
A callback for when the user begins dragging the bottom sheet.
BottomSheetScrimBuilder
Dart’s Scaffold.bottomSheetScrimBuilder: builds the scrim behind a bottom sheet from the scaffold’s scrim animation, or nothing.
CalendarDatePickerDayBuilder
Signature for a function that builds the widget for a day of the calendar; Dart’s CalendarDatePickerDayBuilder.
CalendarDatePickerWeekdayBuilder
Signature for a function that builds the widget for a weekday header of the calendar; Dart’s CalendarDatePickerWeekdayBuilder.
CarouselItemBuilder
Signature of the builder CarouselView.builder and CarouselView.weightedBuilder take: it answers None for an index beyond the last item.
CheckContext
Dart’s _CheckContext.
ControlsWidgetBuilder
A builder that creates the controls from their ControlsDetails.
DataColumnSortCallback
Signature for DataColumn::on_sort and DataTable’s sort callbacks.
DataTableSortIconBuilder
Signature of the builder of a DataTable’s sort arrow: whether the arrow is visible, and whether the column sorts ascending.
DataTableSourceRef
A field Dart types as the erased object, kept: AnyDataTableSource with its count.
DrawerCallback
Signature for the callback that’s called when a DrawerController is opened or closed.
DropdownButtonBuilder
A builder to customize dropdown buttons.
DropdownMenuDecorationBuilder
The type of builder function used by DropdownMenu::decoration_builder to build the InputDecoration passed to the inner text field.
EntryModeChangeCallback
Dart’s EntryModeChangeCallback: called when the user switches the entry mode of a time picker.
ExpansionPanelCallback
Signature for the callback that’s called when an ExpansionPanel is expanded or collapsed.
ExpansionPanelHeaderBuilder
Signature for the callback that’s called when the header of the ExpansionPanel needs to rebuild.
ExpansionTileControllerDeprecated
Enables control over a single ExpansionTile’s expanded/collapsed state.
FilterCallback
A callback function that returns the list of the items that matches the current applied filter.
FloatingActionButtonAnimatorRef
A shared FloatingActionButtonAnimator, compared by identity as Dart compares its animators.
FloatingActionButtonLocationRef
A shared FloatingActionButtonLocation, compared by identity as Dart compares its locations.
GetRectCallback
Dart’s _GetRectCallback.
InkFeatureRef
What a field Dart types as InkFeature holds: the material’s list, an ink well’s state.
InputCounterWidgetBuilder
Signature for the TextField::build_counter callback.
InteractiveInkFeatureFactoryRef
A field Dart types as InteractiveInkFeatureFactory; equal by identity, as Dart’s const factories are.
InteractiveInkFeatureRef
What a field Dart types as InteractiveInkFeature holds: an ink response’s splashes.
MaterialPropertyResolverDeprecated
Signature for the function that returns a value of type T based on a given set of states.
MaterialStateDeprecated
Interactive states that some of the Material widgets can take on when receiving input from the user.
MaterialStateBorderSideDeprecated
Defines a BorderSide whose value depends on a set of MaterialStates which represent the interactive state of a component.
MaterialStateColorDeprecated
Defines a Color that is also a MaterialStateProperty.
MaterialStateMouseCursorDeprecated
Defines a MouseCursor whose value depends on a set of MaterialStates which represent the interactive state of a component.
MaterialStateOutlinedBorderDeprecated
Defines an OutlinedBorder whose value depends on a set of MaterialStates which represent the interactive state of a component.
MaterialStatePropertyDeprecated
Interface for classes that resolve to a value of type T based on a widget’s interactive “state”, which is defined as a set of MaterialStates.
MaterialStatePropertyAllDeprecated
Convenience class for creating a MaterialStateProperty that resolves to the given value for all states.
MaterialStateTextStyleDeprecated
Defines a TextStyle that is also a MaterialStateProperty.
MaterialStatesControllerDeprecated
Manages a set of MaterialStates and notifies listeners of changes.
MenuAcceleratorChildBuilder
The type of builder function used for building a MenuAcceleratorLabel’s MenuAcceleratorLabel::builder function.
MenuAnchorChildBuilder
The type of builder function used by MenuAnchor::builder to build the widget that the MenuAnchor surrounds.
PaintRangeValueIndicator
RangeSlider uses this callback to paint the value indicator on the overlay. Since the value indicator is painted on the Overlay; this method paints the value indicator in a RenderBox that appears in the Overlay.
PaintValueIndicator
Slider uses this callback to paint the value indicator on the overlay.
PopupMenuCanceled
Signature for the callback invoked when a PopupMenuButton is dismissed without selecting an item.
PopupMenuItemBuilder
Signature used by PopupMenuButton to lazily construct the items shown when the button is pressed.
PopupMenuItemSelected
Signature for the callback invoked when a menu item is selected. The argument is the value of the PopupMenuItem that caused its menu to be dismissed.
PopupMenuItemValue
The value type of a popup-menu-item state: its widget’s T.
PopupMenuPositionBuilder
A callback that returns a RelativeRect that describes the position of the popup menu.
RangeSliderThumbShapeRef
What a field or parameter Dart types as RangeSliderThumbShape becomes.
RangeSliderTickMarkShapeRef
What a field or parameter Dart types as RangeSliderTickMarkShape becomes.
RangeSliderTrackShapeRef
What a field or parameter Dart types as RangeSliderTrackShape becomes.
RangeSliderValueIndicatorShapeRef
What a field or parameter Dart types as RangeSliderValueIndicatorShape becomes.
RangeThumbSelector
Decides which thumbs (if any) should be selected.
RectCallback
Signature for the callback used by ink effects to obtain the rectangle for the effect.
RefreshCallback
The signature for a function that’s called when the user has dragged a RefreshIndicator far enough to demonstrate that they want the app to refresh. The returned task must complete when the refresh operation is finished.
SearchAnchorChildBuilder
Signature for a function that creates a WidgetRef to build the child of a SearchAnchor.
SearchCallback
A callback function that returns the index of the item that matches the current contents of a text field.
SelectableDayForRangePredicate
Signature for predicates for enabling a day in a date range picker.
SemanticFormatterCallback
A callback that formats a numeric value from a Slider or RangeSlider widget.
SliderComponentShapeRef
What a field or parameter Dart types as SliderComponentShape becomes.
SliderTickMarkShapeRef
What a field or parameter Dart types as SliderTickMarkShape becomes.
SliderTrackShapeRef
What a field or parameter Dart types as SliderTrackShape becomes.
StepIconBuilder
A builder that creates the icon for the step at the index, given its state.
SuggestionsBuilder
Signature for a function that creates a list of suggestion widgets for the search view of a SearchAnchor.
TabValueChanged
Signature for TabBar callbacks that report that an underlying value has changed for a given Tab at index.
ThemeExtensionRef
A shared ThemeExtension: what Dart’s ThemeExtension<dynamic> values become.
ThreePaneBackStackTruncated
Called with the length the back stack has after back, so the app truncates its stack.
ThreePaneEntryPageBuilder
Builds the page of its own for back_stack[index].
ThreePaneOf
Names the pane an app entry fills; None for an entry that is not a pane.
ThreePaneScenePageBuilder
Builds the one page that holds a scene’s ThreePaneScaffold.
ViewBuilder
Signature for a function that creates a WidgetRef to build the suggestion list of a SearchAnchor in its search view.