FThemeData class final
Defines the configuration of the overall visual FTheme for a widget subtree.
A FThemeData is composed of colorScheme, typography, style, and widget styles.
- colorScheme 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.
Widget styles provide an inherit(...)
constructor. The constructor configures the widget style using the defaults
provided by the colorScheme, typography, and style.
- Mixed-in types
- Available extensions
Constructors
- FThemeData.new({required FColorScheme colorScheme, String? debugLabel, FBreakpoints breakpoints = const FBreakpoints(), FTypography? typography, FStyle? style, FAccordionStyle? accordionStyle, FAlertStyles? alertStyles, FAvatarStyle? avatarStyle, FBadgeStyles? badgeStyles, FBreadcrumbStyle? breadcrumbStyle, FButtonStyles? buttonStyles, FCalendarStyle? calendarStyle, FCardStyle? cardStyle, FCheckboxStyle? checkboxStyle, FDateFieldStyle? dateFieldStyle, FDialogStyle? dialogStyle, FDividerStyles? dividerStyles, FHeaderStyles? headerStyle, FLabelStyles? labelStyles, FLineCalendarStyle? lineCalendarStyle, FPaginationStyle? paginationStyle, FPickerStyle? pickerStyle, FPopoverStyle? popoverStyle, FPopoverMenuStyle? popoverMenuStyle, FProgressStyle? progressStyle, FRadioStyle? radioStyle, FResizableStyle? resizableStyle, FScaffoldStyle? scaffoldStyle, FSelectGroupStyle? selectGroupStyle, FSelectMenuTileStyle? selectMenuTileStyle, FSheetStyle? sheetStyle, FSliderStyles? sliderStyles, FSwitchStyle? switchStyle, FTabsStyle? tabsStyle, FTextFieldStyle? textFieldStyle, FTileGroupStyle? tileGroupStyle, FTimeFieldStyle? timeFieldStyle, FTimePickerStyle? timePickerStyle, FTooltipStyle? tooltipStyle})
-
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
- 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
- colorScheme → FColorScheme
-
The color scheme. It is used to configure the color properties of Forui widgets.
final
- dateFieldStyle → FDateFieldStyle
-
The date picker 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
- hashCode → int
-
The hash code for this object.
no setteroverride
- headerStyle → FHeaderStyles
-
The header styles.
final
- labelStyles → FLabelStyles
-
The label styles.
final
- lineCalendarStyle → FLineCalendarStyle
-
The line calendar 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
- progressStyle → FProgressStyle
-
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
- sheetStyle → FSheetStyle
-
The sheet 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
- textFieldStyle → FTextFieldStyle
-
The text field style.
final
- tileGroupStyle → FTileGroupStyle
-
The tile group's style.
final
- timeFieldStyle → FTimeFieldStyle
-
The time field's style.
final
- timePickerStyle → FTimePickerStyle
-
The time picker 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, FAlertStyles? alertStyles, FAvatarStyle? avatarStyle, FBadgeStyles? badgeStyles, FBreadcrumbStyle? breadcrumbStyle, FButtonStyles? buttonStyles, FCalendarStyle? calendarStyle, FCardStyle? cardStyle, FCheckboxStyle? checkboxStyle, FDateFieldStyle? dateFieldStyle, FDialogStyle? dialogStyle, FDividerStyles? dividerStyles, FHeaderStyles? headerStyle, FLabelStyles? labelStyles, FLineCalendarStyle? lineCalendarStyle, FPaginationStyle? paginationStyle, FPickerStyle? pickerStyle, FPopoverStyle? popoverStyle, FPopoverMenuStyle? popoverMenuStyle, FProgressStyle? progressStyle, FRadioStyle? radioStyle, FResizableStyle? resizableStyle, FScaffoldStyle? scaffoldStyle, FSelectGroupStyle? selectGroupStyle, FSelectMenuTileStyle? selectMenuTileStyle, FSheetStyle? sheetStyle, FSliderStyles? sliderStyles, FSwitchStyle? switchStyle, FTabsStyle? tabsStyle, FTextFieldStyle? textFieldStyle, FTileGroupStyle? tileGroupStyle, FTimeFieldStyle? timeFieldStyle, FTooltipStyle? tooltipStyle}) → FThemeData - Returns a copy of this FThemeData with the given properties replaced.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
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
-
transform(
T function(T)) → T -
Available on T, provided by the FTransformables extension
Transform thisT
using the givenfunction
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override