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.new({required FColors colors, String? debugLabel, FBreakpoints breakpoints = const FBreakpoints(), FTypography? typography, FStyle? style, FAccordionStyle? accordionStyle, FAutocompleteStyle? autocompleteStyle, FAlertStyles? alertStyles, FAvatarStyle? avatarStyle, FBadgeStyles? badgeStyles, FBreadcrumbStyle? breadcrumbStyle, FButtonStyles? buttonStyles, FCalendarStyle? calendarStyle, FCardStyle? cardStyle, FCheckboxStyle? checkboxStyle, FDateFieldStyle? dateFieldStyle, FDialogStyle? dialogStyle, FDividerStyles? dividerStyles, FHeaderStyles? headerStyles, FItemStyle? itemStyle, FItemGroupStyle? itemGroupStyle, FLabelStyles? labelStyles, FLineCalendarStyle? lineCalendarStyle, FMultiSelectStyle? multiSelectStyle, FPaginationStyle? paginationStyle, FPickerStyle? pickerStyle, FPopoverStyle? popoverStyle, FPopoverMenuStyle? popoverMenuStyle, FProgressStyles? progressStyles, FRadioStyle? radioStyle, FResizableStyle? resizableStyle, FScaffoldStyle? scaffoldStyle, FSelectStyle? selectStyle, FSelectGroupStyle? selectGroupStyle, FSelectMenuTileStyle? selectMenuTileStyle, FSheetStyle? sheetStyle, 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
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
-
The bottom navigation bar style.
final
-
The breadcrumb style.
final
- breakpoints → FBreakpoints
-
The responsive breakpoints.
final
-
The button styles.
final
- calendarStyle → FCalendarStyle
-
The calendar style.
final
- cardStyle → FCardStyle
-
The card style.
final
- checkboxStyle → FCheckboxStyle
-
The checkbox 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
- dialogStyle → FDialogStyle
-
The dialog style.
final
- dividerStyles → FDividerStyles
-
The divider styles.
final
-
extensions
→ Iterable<
ThemeExtension> -
All ThemeExtensions defined in this theme.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- 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
- multiSelectStyle → FMultiSelectStyle
-
The multi-select style.
final
- paginationStyle → FPaginationStyle
-
The pagination style.
final
- pickerStyle → FPickerStyle
-
The picker's style.
final
- popoverMenuStyle → FPopoverMenuStyle
-
The popover menu's style.
final
- popoverStyle → FPopoverStyle
-
The popover's style.
final
- progressStyles → FProgressStyles
-
The progress styles.
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
- sheetStyle → FSheetStyle
-
The sheet style.
final
-
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
-
copyWith(
{FAccordionStyle? accordionStyle, FAutocompleteStyle? autocompleteStyle, FAlertStyles? alertStyles, FAvatarStyle? avatarStyle, FBadgeStyles? badgeStyles, FBreadcrumbStyle? breadcrumbStyle, FButtonStyles? buttonStyles, FCalendarStyle? calendarStyle, FCardStyle? cardStyle, FCheckboxStyle? checkboxStyle, FDateFieldStyle? dateFieldStyle, FDialogStyle? dialogStyle, FDividerStyles? dividerStyles, FHeaderStyles? headerStyles, FItemStyle? itemStyle, FItemGroupStyle? itemGroupStyle, FLabelStyles? labelStyles, FLineCalendarStyle? lineCalendarStyle, FMultiSelectStyle? multiSelectStyle, FPaginationStyle? paginationStyle, FPickerStyle? pickerStyle, FPopoverStyle? popoverStyle, FPopoverMenuStyle? popoverMenuStyle, FProgressStyles? progressStyles, FRadioStyle? radioStyle, FResizableStyle? resizableStyle, FScaffoldStyle? scaffoldStyle, FSelectStyle? selectStyle, FSelectGroupStyle? selectGroupStyle, FSelectMenuTileStyle? selectMenuTileStyle, FSheetStyle? sheetStyle, FSidebarStyle? sidebarStyle, FSliderStyles? sliderStyles, FToasterStyle? toasterStyle, FSwitchStyle? switchStyle, FTabsStyle? tabsStyle, FTappableStyle? tappableStyle, FTextFieldStyle? textFieldStyle, FTileStyle? tileStyle, FTileGroupStyle? tileGroupStyle, FTimeFieldStyle? timeFieldStyle, FTooltipStyle? tooltipStyle, 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.
override
-
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.
override