widgetarian library

Classes

Alert
Attract user attention with important static message
AlertIcons
AlertStyle
The style to be applied to alert widget
AlertTheme
A Widget that controls how descendant alerts should look like.
AlertThemeData
Defines the visual properties of Alert.
AlertThemeDefaults
Anchor
An area that responds to touch. Has a configurable shape and can be configured to clip overlay that extend outside its bounds or not.
AnchorEvent
Interactive events that Anchor can take on when receiving input from the user.
AnchorEventController
Manages a set of AnchorEvents and notifies listeners of changes.
AnchorStyle
The style to be applied to anchor widget
AnchorTheme
A Widget that controls how descendant Anchors should look like.
AnchorThemeData
Defines the visual properties of Anchor.
AnchorThemeDefaults
AnimatedBox
AnimatedBoxState
AnimatedCheckmark
AnimatedCheckmarkState
AnimatedIcon
AnimatedIconTheme
A widget that animates the icon theme data implicitly.
AnimatedListTileTheme
A widget that animates the ListTileThemeData implicitly.
AnimatedRadiomark
AnimatedRadiomarkState
AnimatedSpin
AnimatedSpinState
AnimatedSwitchmark
AnimatedSwitchmarkState
AnimatedTextTileTheme
A widget that animates the TextTileThemeData implicitly.
AnimatedTileTheme
A widget that animates the TileThemeData implicitly.
AnimatedTransform
AnimatedTransformState
Avatar
Display user profile image, initials or fallback icon
AvatarStyle
The style to be applied to avatar widget
AvatarTheme
A Widget that controls how descendant avatar should look like.
AvatarThemeData
Defines the visual properties of Avatar.
AvatarThemeDefaults
Badge
Display element at the corner of another element
BadgeStyle
The style to be applied to badge widget
BadgeTheme
A Widget that controls how descendant badges should look like.
BadgeThemeData
Defines the visual properties of Badge.
BadgeThemeDefaults
BodyText
Box
Button
Buttons allow users to take actions, and make choices, with a single tap
ButtonEvent
Interactive events that Button can take on when receiving input from the user.
ButtonStyle
The style to be applied to button widget
ButtonTheme
A Widget that controls how descendant buttons should look like.
ButtonThemeData
Defines the visual properties of Button.
ButtonThemeDefaults
ButtonThemeIos
ButtonThemeM2
ButtonThemeM3
Checkbox
Checkboxes allow the user to select one or more items from a set.
CheckboxEvent
Interactive events that Checkbox can take on when receiving input from the user.
CheckboxEventController
Manages a set of CheckboxEvents and notifies listeners of changes.
CheckboxStyle
The style to be applied to checkbox widget
CheckboxTheme
A Widget that controls how descendant checkbox should look like.
CheckboxThemeData
Defines the visual properties of Checkbox.
CheckboxThemeDefaults
CheckboxThemeIos
CheckboxThemeM2
CheckboxThemeM3
CheckboxTile
A tiled checkbox. In other words, a checkbox with a label.
CheckboxTileTheme
A Widget that controls how descendant checkbox tile should look like.
CheckboxTileThemeData
Defines the visual properties of CheckboxTile.
CheckboxTileThemeDefaults
Checkmark
CheckmarkPainter
Chip
Chips are compact elements that represent an input, attribute, or action.
ChipEvent
Interactive events that Chip can take on when receiving input from the user.
ChipStyle
The style to be applied to chip widget
ChipTheme
A Widget that controls how descendant Chips should look like.
ChipThemeData
Defines the visual properties of Chip.
ChipThemeDefaults
ChipThemeIos
ChipThemeM2
ChipThemeM3
Choice<T>
ChoiceConsumer<T>
ChoiceController<T>
ChoiceProvider<T>
Colors
ColorScheme
A set of 45 colors based on the Material spec that can be used to configure the color properties of most components.
ColorTheme
A Widget that controls how descendant alerts should look like.
ColorThemeData
Descendant widgets obtain the current ColorThemeData object using AlertTheme.of(context). Instances of ColorThemeData can be customized with ColorThemeData.copyWith or ColorThemeData.merge.
ColorThemeDefaults
ConstrainedText
DisplayText
DrivenAnchorStyle
Create a AnchorStyle that can handle widget event.
DrivenButton
Buttons allow users to take actions, and make choices, with a single tap
DrivenButtonStyle
Create a ButtonStyle when some events occurs
DrivenCheckboxStyle
Create a CheckboxStyle that handle the widget events
DrivenChip
Chips allow users to take actions, and make choices, with a single tap
DrivenChipStyle
Create a ChipStyle when some events occurs
DrivenColor
DrivenMouseCursor
Defines a MouseCursor whose value depends on a set of WidgetEvents which represent the interactive state of a component.
DrivenProperty<T>
Interface for classes that resolve to a value of type T based on a widget's interactive "event", which is defined as a set of WidgetEvents.
DrivenRadioStyle
Create a RadioStyle that handle the widget events
DrivenSwitchStyle
Create a SwitchStyle that handle the widget events
DrivenToggleButton
Buttons allow users to take actions, and make choices, with a single tap
DrivenToggleIconStyle
A ToggleIconStyle that change when some events occurs.
DrivenWidget
ElevatedButton
Elevated buttons are high-emphasis, distinguished by their use of elevation and fill. They contain actions that are primary to your app.
ElevatedChip
Elevated chips are high-emphasis, distinguished by their use of elevation and fill. They contain actions that are primary to your app.
ElevatedSheet
ElevatedToggleButton
Elevated buttons are high-emphasis, distinguished by their use of elevation and fill. They contain actions that are primary to your app.
ElevationOverlay
A utility class for dealing with the overlay color needed to indicate elevation of surfaces.
Expansion
ExpansionButton
ExpansionButtonAction
ExpansionCollapse
ExpansionConsumer
ExpansionController
ExpansionExpand
ExpansionHeader
ExpansionIcon
ExpansionLayout
ExpansionProvider
ExpansionToggle
ExpansionTransition
ExpansionView
FilledAlert
FilledButton
Filled buttons are high-emphasis, distinguished by their use of elevation and fill. They contain actions that are primary to your app.
FilledChip
Filled chips are high-emphasis, distinguished by their use of elevation and fill. They contain actions that are primary to your app.
FilledSheet
FilledToggleButton
Filled buttons are high-emphasis, distinguished by their use of elevation and fill. They contain actions that are primary to your app.
Gap
Spacer creates an adjustable, empty spacer that can be used to tune the spacing between widgets in a Flex container, like Row or Column.
HeadlineText
IconThemeDataTween
An interpolation between two IconThemeDatas.
LabelText
ListTile
ListTileStyle
The style to be applied to ListTile widget
ListTileStyleTween
An interpolation between two ListTileStyles.
ListTileTheme
A Widget that controls how descendant tile should look like.
ListTileThemeData
Defines the visual properties of ListTile.
ListTileThemeDataTween
An interpolation between two ListTileThemeDatas.
ListTileThemeDefaults
NullWidget
OutlinedAlert
OutlinedButton
Outlined buttons are medium-emphasis buttons. They contain actions that are important but aren't the primary action in an app.
OutlinedChip
Outlined chips are medium-emphasis chips. They contain actions that are important but aren't the primary action in an app.
OutlinedSheet
OutlinedToggleButton
Outlined buttons are medium-emphasis buttons. They contain actions that are important but aren't the primary action in an app.
Overlaid
Radio
Radio allow the user to select one item from a set.
RadioEvent
Interactive events that Radio can take on when receiving input from the user.
RadioEventController
Manages a set of RadioEvents and notifies listeners of changes.
Radiomark
RadiomarkPainter
RadioStyle
The style to be applied to Radio widget
RadioTheme
A Widget that controls how descendant radio should look like.
RadioThemeData
Defines the visual properties of Radio.
RadioThemeDefaults
RadioThemeIos
RadioThemeM2
RadioThemeM3
RadioTile
A tiled radio. In other words, a radio with a label.
RadioTileTheme
A Widget that controls how descendant radio tile should look like.
RadioTileThemeData
Defines the visual properties of RadioTile.
RadioTileThemeDefaults
ShapeBorderPaint
ShapeBorderPainter
ShapeBorderTween
An interpolation between two ShapeBorders.
Sheet
The sheet widget is the baseline for numerous components.
SheetStyle
The style to be applied to the sheet widget
SheetTheme
A Widget that controls how descendant Sheets should look like.
SheetThemeData
Defines the visual properties of Sheet.
SheetThemeDefaults
SheetThemeIos
SheetThemeM2
SheetThemeM3
SkeletonImage
SkeletonParagraph
SkeletonText
Spoiler
Switch
Switches toggle the state of a single setting on or off.
SwitchEvent
Interactive events that Checkbox can take on when receiving input from the user.
SwitchEventController
Manages a set of SwitchEvents and notifies listeners of changes.
Switchmark
SwitchmarkPainter
SwitchStyle
The style to be applied to Switch widget
SwitchTheme
A Widget that controls how descendant Switch should look like.
SwitchThemeData
Defines the visual properties of Switch.
SwitchThemeDefaults
SwitchThemeIos
SwitchThemeM2
SwitchThemeM3
SwitchTile
A tiled switch. In other words, a switch with a label.
SwitchTileTheme
A Widget that controls how descendant switch tile should look like.
SwitchTileThemeData
Defines the visual properties of SwitchTile.
SwitchTileThemeDefaults
SwitchTileThemeIos
SwitchTileThemeM2
SwitchTileThemeM3
TextButton
Text buttons are typically used for less-pronounced actions.
TextTheme
Material design text theme.
TextTile
TextTileStyle
The style to be applied to TextTile widget
TextTileStyleTween
An interpolation between two TextTileStyles.
TextTileTheme
A Widget that controls how descendant tile should look like.
TextTileThemeData
Defines the visual properties of TextTile.
TextTileThemeDataTween
An interpolation between two TextTileThemeDatas.
TextTileThemeDefaults
TextToggleButton
Text buttons are typically used for less-pronounced actions.
Theme
Applies a theme to descendant widgets.
ThemeConfig
The theme config contains light and dark theme data
ThemeConsumer
ThemeController
ThemeData
Defines the configuration of the overall visual Theme for a MaterialApp or a widget subtree within the app.
ThemeExtension<T extends ThemeExtension<T>>
An interface that defines custom additions to a ThemeData object.
ThemePreset
ThemeProvider
Tile
TileStyle
The style to be applied to Tile widget
TileStyleTween
An interpolation between two TileStyles.
TileTheme
A Widget that controls how descendant tile should look like.
TileThemeData
Defines the visual properties of Tile.
TileThemeDataTween
An interpolation between two TileThemeDatas.
TileThemeDefaults
TitleText
ToggleButton
A Toggle Button can be used to group related options.
ToggleButtonTheme
A Widget that controls how descendant buttons should look like.
ToggleButtonThemeData
Defines the visual properties of Button.
ToggleButtonThemeDefaults
ToggleButtonThemeIos
ToggleButtonThemeM2
ToggleButtonThemeM3
ToggleIcon
ToggleIconEvent
Interactive events that ToggleIcon can take on when receiving input from the user.
ToggleIconStyle
The style to be applied to ToggleIcon widget
ToggleIconTheme
A Widget that controls how descendant toggle icon should look like.
ToggleIconThemeData
Defines the visual properties of ToggleIcon.
ToggleIconThemeDefaults
TonalAlert
TonalButton
A tonal button is an alternative middle ground between filled and outlined buttons. They’re useful in contexts where a lower-priority button requires slightly more emphasis than an outline would give, such as "Next" in an onboarding flow. Tonal buttons use the secondary color mapping.
TonalChip
A tonal chip is an alternative middle ground between filled and outlined chips. They’re useful in contexts where a lower-priority chip requires slightly more emphasis than an outline would give, such as "Next" in an onboarding flow. Tonal chips use the secondary color mapping.
TonalSheet
TonalToggleButton
A tonal button is an alternative middle ground between filled and outlined buttons. They’re useful in contexts where a lower-priority button requires slightly more emphasis than an outline would give, such as "Next" in an onboarding flow. Tonal buttons use the secondary color mapping.
Typography
WidgetEvent
Interactive events that some of the widgets can take on when receiving input from the user.
WidgetEventController
Manages a set of WidgetEvents and notifies listeners of changes.

Enums

Brightness
Describes the contrast of a theme or color palette.
ControlAffinity
Where to place the control next to a label.
OverlaidAlign
SheetSeverity
SheetVariant
StrokeStyle
TextTileAlign
ThemeMode
Describes which theme will be used by MaterialApp.
TypographySize

Mixins

WidgetEventMixin<T extends StatefulWidget>
Mixin for State classes that require knowledge of changing WidgetEvent values for their child widgets.

Constants

kSkeletonColor → const Color

Functions

lerpBool(bool? a, bool? b, double t) bool?
lerpDouble(num? a, num? b, double t) double?
Linearly interpolate between two numbers, a and b, by an extrapolation factor t.
lerpEnum<T>(T? a, T? b, double t) → T?
lerpInt(int? a, int? b, double t) int?
Linearly interpolate between two integers.
radians(double degrees) double

Typedefs

AlertButton = ExpansionButton
AlertButtonAction = ExpansionButtonAction
AlertButtonCallback = ExpansionButtonCallback
AlertButtonStyle = ExpansionButtonStyle
AlertClose = ExpansionCollapse
AlertLayout = ExpansionLayout
AlertLayoutBuilder = ExpansionLayoutBuilder
AlertSeverity = SheetSeverity
AlertStyleByVariant = Map<AlertVariant, AlertStyle?>
Map of AlertStyle by AlertVariant as key
AlertTransition = ExpansionTransition
AlertTransitionBuilder = ExpansionTransitionBuilder
AlertVariant = SheetVariant
AnchorEvents = WidgetEvents
Set of WidgetEvent
BadgeLayout = ExpansionLayout
BadgeLayoutBuilder = ExpansionLayoutBuilder
BadgeSeverity = SheetSeverity
BadgeTransition = ExpansionTransition
BadgeTransitionBuilder = ExpansionTransitionBuilder
BadgeVariant = SheetVariant
ButtonEventController = WidgetEventController
Manages a set of ButtonEvents and notifies listeners of changes.
ButtonEvents = WidgetEvents
Set of WidgetEvent
ButtonSeverity = SheetSeverity
ButtonStyleByVariant = Map<ButtonVariant, ButtonStyle?>
Map of ButtonStyle by ButtonVariant as key
ButtonVariant = SheetVariant
CheckboxEvents = WidgetEvents
Set of WidgetEvent
ChipEventController = WidgetEventController
Manages a set of ChipEvents and notifies listeners of changes.
ChipEvents = WidgetEvents
Set of WidgetEvent
ChipSeverity = SheetSeverity
ChipStyleByVariant = Map<ChipVariant, ChipStyle?>
Map of ChipStyle by ChipVariant as key
ChipVariant = SheetVariant
ChoiceBuilder<T> = Widget Function(BuildContext context, ChoiceController<T> state, Widget? child)
DrivenPropertyResolver<T> = T Function(Set<WidgetEvent> events)
Signature for the function that returns a value of type T based on a given set of events.
ExpansionBuilder = Widget Function(BuildContext context, ExpansionController state, Widget? child)
ExpansionButtonCallback = VoidCallback Function(ExpansionController state)
ExpansionButtonStyle = AnchorStyle
ExpansionLayoutBuilder = AnimatedSwitcherLayoutBuilder
ExpansionTransitionBuilder = AnimatedSwitcherTransitionBuilder
OverlaidInfoBuilder = Widget Function(BuildContext context, int remaining)
RadioEvents = WidgetEvents
Set of WidgetEvent
SheetStyleByVariant = Map<SheetVariant, SheetStyle?>
Map of SheetStyle by SheetVariant as key
SwitchEvents = WidgetEvents
Set of WidgetEvent
ThemeBuilder = Widget Function(BuildContext context, ThemeController theme)
ThemeChanged = void Function(ThemeController theme)
ThemeExtensionBuilder = ThemeExtensionIterable Function(BuildContext context)
ThemeExtensionIterable = Iterable<ThemeExtension>
ThemeList = List<MapEntry<String, ThemeConfig>>
ThemeMap = Map<String, ThemeConfig>
ThemeModeIcons = Map<ThemeMode, IconData>
ToggleIconEventController = WidgetEventController
Manages a set of ToggleIconEvents and notifies listeners of changes.
ToggleIconEvents = WidgetEvents
Set of WidgetEvent
WidgetEvents = Set<WidgetEvent>
Alias to Set