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.
FThemeData and widget styles provide an inherit(...)
constructor. The constructor configures the theme data/
widget style using the defaults provided by the colorScheme, typography, and style.
- Mixed-in types
Constructors
- FThemeData({required FColorScheme colorScheme, required FStyle style, required FAccordionStyle accordionStyle, required FAlertStyles alertStyles, required FAvatarStyle avatarStyle, required FBadgeStyles badgeStyles, required FButtonStyles buttonStyles, required FCalendarStyle calendarStyle, required FCardStyle cardStyle, required FCheckboxStyle checkboxStyle, required FDialogStyle dialogStyle, required FDividerStyles dividerStyles, required FHeaderStyles headerStyle, required FLabelStyles labelStyles, required FPopoverStyle popoverStyle, required FProgressStyle progressStyle, required FRadioStyle radioStyle, required FResizableStyle resizableStyle, required FTabsStyle tabsStyle, required FTextFieldStyle textFieldStyle, required FTooltipStyle tooltipStyle, required FScaffoldStyle scaffoldStyle, required FSelectGroupStyle selectGroupStyle, required FSliderStyles sliderStyles, required FSwitchStyle switchStyle, FTypography typography = const FTypography()})
- Creates a FThemeData.
- FThemeData.inherit({required FColorScheme colorScheme, FStyle? style, FTypography? typography})
-
Creates a FThemeData that configures the widget styles using the given properties.
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 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
- 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
- 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
- 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
- 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, FButtonStyles? buttonStyles, FCalendarStyle? calendarStyle, FCardStyle? cardStyle, FCheckboxStyle? checkboxStyle, FDialogStyle? dialogStyle, FDividerStyles? dividerStyles, FHeaderStyles? headerStyle, FLabelStyles? labelStyles, FPopoverStyle? popoverStyle, FProgressStyle? progressStyle, FRadioStyle? radioStyle, FResizableStyle? resizableStyle, FTabsStyle? tabsStyle, FTextFieldStyle? textFieldStyle, FTooltipStyle? tooltipStyle, FScaffoldStyle? scaffoldStyle, FSelectGroupStyle? selectGroupStyle, FSliderStyles? sliderStyles, FSwitchStyle? switchStyle}) → 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
-
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