FThemeData class final

Defines the configuration of the overall visual FTheme for a widget subtree.

A FThemeData is composed of colors, typography, style, widget styles, and extensions.

  • colors is a set of colors.
  • typography contains font and typography information.
  • style is a set of miscellaneous properties.
  • widget styles are used to style individual Forui widgets.
  • extensions are arbitrary additions to this theme. They are typically used to define properties specific to your application.

Widget styles provide an inherit(...) constructor. The constructor configures the widget style using the defaults provided by the colors, typography, and style.

Mixed-in types

Constructors

FThemeData({required FColors colors, String? debugLabel, FBreakpoints breakpoints = const FBreakpoints(), FTypography? typography, FStyle? style, FAccordionStyle? accordionStyle, FAutocompleteStyle? autocompleteStyle, FAlertStyles? alertStyles, FAvatarStyle? avatarStyle, FBadgeStyles? badgeStyles, FBottomNavigationBarStyle? bottomNavigationBarStyle, FBreadcrumbStyle? breadcrumbStyle, FButtonStyles? buttonStyles, FCalendarStyle? calendarStyle, FCardStyle? cardStyle, FCheckboxStyle? checkboxStyle, FCircularProgressStyle? circularProgressStyle, FDateFieldStyle? dateFieldStyle, FDeterminateProgressStyle? determinateProgressStyle, FDialogRouteStyle? dialogRouteStyle, FDialogStyle? dialogStyle, FDividerStyles? dividerStyles, FHeaderStyles? headerStyles, FItemStyle? itemStyle, FItemGroupStyle? itemGroupStyle, FLabelStyles? labelStyles, FLineCalendarStyle? lineCalendarStyle, FMultiSelectStyle? multiSelectStyle, FModalSheetStyle? modalSheetStyle, FPaginationStyle? paginationStyle, FPersistentSheetStyle? persistentSheetStyle, FPickerStyle? pickerStyle, FPopoverStyle? popoverStyle, FPopoverMenuStyle? popoverMenuStyle, FProgressStyle? progressStyle, FRadioStyle? radioStyle, FResizableStyle? resizableStyle, FScaffoldStyle? scaffoldStyle, FSelectStyle? selectStyle, FSelectGroupStyle? selectGroupStyle, FSelectMenuTileStyle? selectMenuTileStyle, FSidebarStyle? sidebarStyle, FSliderStyles? sliderStyles, FToasterStyle? toasterStyle, FSwitchStyle? switchStyle, FTabsStyle? tabsStyle, FTappableStyle? tappableStyle, FTextFieldStyle? textFieldStyle, FTileStyle? tileStyle, FTileGroupStyle? tileGroupStyle, FTimeFieldStyle? timeFieldStyle, FTimePickerStyle? timePickerStyle, FTooltipStyle? tooltipStyle, Iterable<ThemeExtension> extensions = const []})
Creates a FThemeData that configures the widget styles using the given properties if not given.
factory
FThemeData.lerp(FThemeData a, FThemeData b, double t)
Creates a linear interpolation between two FThemeData using the given factor t.
factory

Properties

accordionStyle FAccordionStyle
The accordion style.
final
alertStyles FAlertStyles
The alert styles.
final
autocompleteStyle FAutocompleteStyle
The autocomplete style.
final
avatarStyle FAvatarStyle
The avatar style.
final
badgeStyles FBadgeStyles
The badge styles.
final
bottomNavigationBarStyle FBottomNavigationBarStyle
The bottom navigation bar style.
final
The breadcrumb style.
final
breakpoints FBreakpoints
The responsive breakpoints.
final
buttonStyles FButtonStyles
The button styles.
final
calendarStyle FCalendarStyle
The calendar style.
final
cardStyle FCardStyle
The card style.
final
checkboxStyle FCheckboxStyle
The checkbox style.
final
circularProgressStyle FCircularProgressStyle
The circular progress style.
final
colors FColors
The color scheme. It is used to configure the colors of Forui widgets.
final
dateFieldStyle FDateFieldStyle
The date field style.
final
debugLabel String?
A label that is used in the toString output. Intended to aid with identifying themes in debug output.
final
determinateProgressStyle FDeterminateProgressStyle
The determinate progress style.
final
dialogRouteStyle FDialogRouteStyle
The dialog route's style.
final
dialogStyle FDialogStyle
The dialog style.
final
dividerStyles FDividerStyles
The divider styles.
final
extensions Set<ThemeExtension>
All ThemeExtensions defined in this theme.
no setter
hashCode int
The hash code for this object.
no setterinherited
headerStyles FHeaderStyles
The header styles.
final
itemGroupStyle FItemGroupStyle
The item group style.
final
itemStyle FItemStyle
The item style.
final
labelStyles FLabelStyles
The label styles.
final
lineCalendarStyle FLineCalendarStyle
The line calendar style.
final
modalSheetStyle FModalSheetStyle
The modal sheet style.
final
multiSelectStyle FMultiSelectStyle
The multi-select style.
final
paginationStyle FPaginationStyle
The pagination style.
final
persistentSheetStyle FPersistentSheetStyle
The persistent sheet style.
final
pickerStyle FPickerStyle
The picker's style.
final
popoverMenuStyle FPopoverMenuStyle
The popover menu's style.
final
popoverStyle FPopoverStyle
The popover's style.
final
progressStyle FProgressStyle
The progress style.
final
radioStyle FRadioStyle
The radio style.
final
resizableStyle FResizableStyle
The resizable style.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaffoldStyle FScaffoldStyle
The scaffold style.
final
selectGroupStyle FSelectGroupStyle
The select group style.
final
selectMenuTileStyle FSelectMenuTileStyle
The select menu tile style.
final
selectStyle FSelectStyle
The select style.
final
sidebarStyle FSidebarStyle
The sidebar style.
final
sliderStyles FSliderStyles
The slider styles.
final
style FStyle
The style. It is used to configure the miscellaneous properties, such as border radii, of Forui widgets.
final
switchStyle FSwitchStyle
The switch style.
final
tabsStyle FTabsStyle
The tabs styles.
final
tappableStyle FTappableStyle
The tappable style.
final
textFieldStyle FTextFieldStyle
The text field style.
final
tileGroupStyle FTileGroupStyle
The tile group's style.
final
tileStyle FTileStyle
The tile's style.
final
timeFieldStyle FTimeFieldStyle
The time field's style.
final
timePickerStyle FTimePickerStyle
The time picker style.
final
toasterStyle FToasterStyle
The toaster style.
final
tooltipStyle FTooltipStyle
The tooltip style.
final
typography FTypography
The typography data. It is used to configure the TextStyles of Forui widgets.
final

Methods

call(Object? _) FThemeData
Returns itself.
inherited
copyWith({String? debugLabel, FBreakpoints? breakpoints, FColors? colors, FTypography? typography, FStyle style(FStyle style)?, FAccordionStyle accordionStyle(FAccordionStyle style)?, FAutocompleteStyle autocompleteStyle(FAutocompleteStyle style)?, FAlertStyles alertStyles(FAlertStyles style)?, FAvatarStyle avatarStyle(FAvatarStyle style)?, FBadgeStyles badgeStyles(FBadgeStyles style)?, FBottomNavigationBarStyle bottomNavigationBarStyle(FBottomNavigationBarStyle style)?, FBreadcrumbStyle breadcrumbStyle(FBreadcrumbStyle style)?, FButtonStyles buttonStyles(FButtonStyles style)?, FCalendarStyle calendarStyle(FCalendarStyle style)?, FCardStyle cardStyle(FCardStyle style)?, FCheckboxStyle checkboxStyle(FCheckboxStyle style)?, FCircularProgressStyle circularProgressStyle(FCircularProgressStyle style)?, FDateFieldStyle dateFieldStyle(FDateFieldStyle style)?, FDeterminateProgressStyle determinateProgressStyle(FDeterminateProgressStyle style)?, FDialogRouteStyle dialogRouteStyle(FDialogRouteStyle style)?, FDialogStyle dialogStyle(FDialogStyle style)?, FDividerStyles dividerStyles(FDividerStyles style)?, FHeaderStyles headerStyles(FHeaderStyles style)?, FItemStyle itemStyle(FItemStyle style)?, FItemGroupStyle itemGroupStyle(FItemGroupStyle style)?, FLabelStyles labelStyles(FLabelStyles style)?, FLineCalendarStyle lineCalendarStyle(FLineCalendarStyle style)?, FMultiSelectStyle multiSelectStyle(FMultiSelectStyle style)?, FModalSheetStyle modalSheetStyle(FModalSheetStyle style)?, FPaginationStyle paginationStyle(FPaginationStyle style)?, FPersistentSheetStyle persistentSheetStyle(FPersistentSheetStyle style)?, FPickerStyle pickerStyle(FPickerStyle style)?, FPopoverStyle popoverStyle(FPopoverStyle style)?, FPopoverMenuStyle popoverMenuStyle(FPopoverMenuStyle style)?, FProgressStyle progressStyle(FProgressStyle style)?, FRadioStyle radioStyle(FRadioStyle style)?, FResizableStyle resizableStyle(FResizableStyle style)?, FScaffoldStyle scaffoldStyle(FScaffoldStyle style)?, FSelectStyle selectStyle(FSelectStyle style)?, FSelectGroupStyle selectGroupStyle(FSelectGroupStyle style)?, FSelectMenuTileStyle selectMenuTileStyle(FSelectMenuTileStyle style)?, FSidebarStyle sidebarStyle(FSidebarStyle style)?, FSliderStyles sliderStyles(FSliderStyles style)?, FToasterStyle toasterStyle(FToasterStyle style)?, FSwitchStyle switchStyle(FSwitchStyle style)?, FTabsStyle tabsStyle(FTabsStyle style)?, FTappableStyle tappableStyle(FTappableStyle style)?, FTextFieldStyle textFieldStyle(FTextFieldStyle style)?, FTileStyle tileStyle(FTileStyle style)?, FTileGroupStyle tileGroupStyle(FTileGroupStyle style)?, FTimeFieldStyle timeFieldStyle(FTimeFieldStyle style)?, FTimePickerStyle timePickerStyle(FTimePickerStyle style)?, FTooltipStyle tooltipStyle(FTooltipStyle style)?, Iterable<ThemeExtension>? extensions}) FThemeData
Returns a copy of this FThemeData with the given properties replaced.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
extension<T extends Object>() → T
Obtains a particular ThemeExtension.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toApproximateMaterialTheme() ThemeData
Converts this FThemeData to a Material ThemeData on a best-effort basis.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited