FThemeData constructor
FThemeData({
- required FColors colors,
- String? debugLabel,
- FBreakpoints breakpoints = const FBreakpoints(),
- FTypography? typography,
- FStyle? style,
- FAccordionStyle? accordionStyle,
- FAutocompleteStyle? autocompleteStyle,
- FVariants<
FAlertVariantConstraint, FAlertVariant, FAlertStyle, FAlertStyleDelta> ? alertStyles, - FAvatarStyle? avatarStyle,
- FVariants<
FBadgeVariantConstraint, FBadgeVariant, FBadgeStyle, FBadgeStyleDelta> ? badgeStyles, - FBreadcrumbStyle? breadcrumbStyle,
- FVariants<
FButtonVariantConstraint, FButtonVariant, FButtonSizes, FButtonSizesDelta> ? buttonStyles, - FCalendarStyle? calendarStyle,
- FCardStyle? cardStyle,
- FCheckboxStyle? checkboxStyle,
- FCircularProgressStyle? circularProgressStyle,
- FDateFieldStyle? dateFieldStyle,
- FDeterminateProgressStyle? determinateProgressStyle,
- FDialogRouteStyle? dialogRouteStyle,
- FDialogStyle? dialogStyle,
- FVariants<
FDividerAxisVariantConstraint, FDividerAxisVariant, FDividerStyle, FDividerStyleDelta> ? dividerStyles, - FVariants<
FHeaderVariantConstraint, FHeaderVariant, FHeaderStyle, FHeaderStyleDelta> ? headerStyles, - FVariants<
FItemVariantConstraint, FItemVariant, FItemStyle, FItemStyleDelta> ? itemStyles, - FItemGroupStyle? itemGroupStyle,
- FLabelStyles? labelStyles,
- FLineCalendarStyle? lineCalendarStyle,
- FMultiSelectStyle? multiSelectStyle,
- FModalSheetStyle? modalSheetStyle,
- FPaginationStyle? paginationStyle,
- FPersistentSheetStyle? persistentSheetStyle,
- FPickerStyle? pickerStyle,
- FPopoverStyle? popoverStyle,
- FPopoverMenuStyle? popoverMenuStyle,
- FProgressStyle? progressStyle,
- FRadioStyle? radioStyle,
- FVariants<
FResizableAxisVariantConstraint, FResizableAxisVariant, FResizableDividerStyle, FResizableDividerStyleDelta> ? resizableStyles, - FScaffoldStyle? scaffoldStyle,
- FSelectStyle? selectStyle,
- FSelectGroupStyle? selectGroupStyle,
- FSelectMenuTileStyle? selectMenuTileStyle,
- FSidebarStyle? sidebarStyle,
- FVariants<
FSliderAxisVariantConstraint, FSliderAxisVariant, FSliderStyle, FSliderStyleDelta> ? sliderStyles, - FToasterStyle? toasterStyle,
- FSwitchStyle? switchStyle,
- FTabsStyle? tabsStyle,
- FTappableStyle? tappableStyle,
- FTextFieldStyle? textFieldStyle,
- FVariants<
FItemVariantConstraint, FItemVariant, FTileStyle, FTileStyleDelta> ? tileStyles, - 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.
Implementation
factory FThemeData({
required FColors colors,
String? debugLabel,
FBreakpoints breakpoints = const FBreakpoints(),
FTypography? typography,
FStyle? style,
FAccordionStyle? accordionStyle,
FAutocompleteStyle? autocompleteStyle,
FVariants<FAlertVariantConstraint, FAlertVariant, FAlertStyle, FAlertStyleDelta>? alertStyles,
FAvatarStyle? avatarStyle,
FVariants<FBadgeVariantConstraint, FBadgeVariant, FBadgeStyle, FBadgeStyleDelta>? badgeStyles,
FBottomNavigationBarStyle? bottomNavigationBarStyle,
FBreadcrumbStyle? breadcrumbStyle,
FVariants<FButtonVariantConstraint, FButtonVariant, FButtonSizes, FButtonSizesDelta>? buttonStyles,
FCalendarStyle? calendarStyle,
FCardStyle? cardStyle,
FCheckboxStyle? checkboxStyle,
FCircularProgressStyle? circularProgressStyle,
FDateFieldStyle? dateFieldStyle,
FDeterminateProgressStyle? determinateProgressStyle,
FDialogRouteStyle? dialogRouteStyle,
FDialogStyle? dialogStyle,
FVariants<FDividerAxisVariantConstraint, FDividerAxisVariant, FDividerStyle, FDividerStyleDelta>? dividerStyles,
FVariants<FHeaderVariantConstraint, FHeaderVariant, FHeaderStyle, FHeaderStyleDelta>? headerStyles,
FVariants<FItemVariantConstraint, FItemVariant, FItemStyle, FItemStyleDelta>? itemStyles,
FItemGroupStyle? itemGroupStyle,
FLabelStyles? labelStyles,
FLineCalendarStyle? lineCalendarStyle,
FMultiSelectStyle? multiSelectStyle,
FModalSheetStyle? modalSheetStyle,
FPaginationStyle? paginationStyle,
FPersistentSheetStyle? persistentSheetStyle,
FPickerStyle? pickerStyle,
FPopoverStyle? popoverStyle,
FPopoverMenuStyle? popoverMenuStyle,
FProgressStyle? progressStyle,
FRadioStyle? radioStyle,
FVariants<
FResizableAxisVariantConstraint,
FResizableAxisVariant,
FResizableDividerStyle,
FResizableDividerStyleDelta
>?
resizableStyles,
FScaffoldStyle? scaffoldStyle,
FSelectStyle? selectStyle,
FSelectGroupStyle? selectGroupStyle,
FSelectMenuTileStyle? selectMenuTileStyle,
FSidebarStyle? sidebarStyle,
FVariants<FSliderAxisVariantConstraint, FSliderAxisVariant, FSliderStyle, FSliderStyleDelta>? sliderStyles,
FToasterStyle? toasterStyle,
FSwitchStyle? switchStyle,
FTabsStyle? tabsStyle,
FTappableStyle? tappableStyle,
FTextFieldStyle? textFieldStyle,
FVariants<FItemVariantConstraint, FItemVariant, FTileStyle, FTileStyleDelta>? tileStyles,
FTileGroupStyle? tileGroupStyle,
FTimeFieldStyle? timeFieldStyle,
FTimePickerStyle? timePickerStyle,
FTooltipStyle? tooltipStyle,
Iterable<ThemeExtension<dynamic>> extensions = const [],
}) {
typography ??= .inherit(colors: colors);
style ??= .inherit(colors: colors, typography: typography);
return ._(
debugLabel: debugLabel,
breakpoints: breakpoints,
colors: colors,
typography: typography,
style: style,
accordionStyle: accordionStyle ?? .inherit(colors: colors, typography: typography, style: style),
autocompleteStyle: autocompleteStyle ?? .inherit(colors: colors, typography: typography, style: style),
alertStyles: alertStyles ?? FAlertStyles.inherit(colors: colors, typography: typography, style: style),
avatarStyle: avatarStyle ?? .inherit(colors: colors, typography: typography),
badgeStyles: badgeStyles ?? FBadgeStyles.inherit(colors: colors, typography: typography, style: style),
bottomNavigationBarStyle:
bottomNavigationBarStyle ?? .inherit(colors: colors, typography: typography, style: style),
breadcrumbStyle: breadcrumbStyle ?? .inherit(colors: colors, typography: typography, style: style),
buttonStyles: buttonStyles ?? FButtonStyles.inherit(colors: colors, typography: typography, style: style),
calendarStyle: calendarStyle ?? .inherit(colors: colors, typography: typography, style: style),
cardStyle: cardStyle ?? .inherit(colors: colors, typography: typography, style: style),
checkboxStyle: checkboxStyle ?? .inherit(colors: colors, style: style),
circularProgressStyle: circularProgressStyle ?? .inherit(colors: colors),
dateFieldStyle: dateFieldStyle ?? .inherit(colors: colors, typography: typography, style: style),
determinateProgressStyle: determinateProgressStyle ?? .inherit(colors: colors, style: style),
dialogRouteStyle: dialogRouteStyle ?? .inherit(colors: colors),
dialogStyle: dialogStyle ?? .inherit(colors: colors, typography: typography, style: style),
dividerStyles: dividerStyles ?? FDividerStyles.inherit(colors: colors, style: style),
headerStyles: headerStyles ?? FHeaderStyles.inherit(colors: colors, typography: typography, style: style),
itemStyles: itemStyles ?? FItemStyles.inherit(colors: colors, typography: typography, style: style),
itemGroupStyle: itemGroupStyle ?? .inherit(colors: colors, typography: typography, style: style),
labelStyles: labelStyles ?? .inherit(style: style),
lineCalendarStyle: lineCalendarStyle ?? .inherit(colors: colors, typography: typography, style: style),
multiSelectStyle: multiSelectStyle ?? .inherit(colors: colors, typography: typography, style: style),
modalSheetStyle: modalSheetStyle ?? .inherit(colors: colors),
paginationStyle: paginationStyle ?? .inherit(colors: colors, typography: typography, style: style),
persistentSheetStyle: persistentSheetStyle ?? const FPersistentSheetStyle(),
pickerStyle: pickerStyle ?? .inherit(colors: colors, style: style, typography: typography),
popoverStyle: popoverStyle ?? .inherit(colors: colors, style: style),
popoverMenuStyle: popoverMenuStyle ?? .inherit(colors: colors, style: style, typography: typography),
progressStyle: progressStyle ?? .inherit(colors: colors, style: style),
radioStyle: radioStyle ?? .inherit(colors: colors, style: style),
resizableStyles: resizableStyles ?? FResizableStyles.inherit(colors: colors, style: style),
scaffoldStyle: scaffoldStyle ?? .inherit(colors: colors, style: style),
selectStyle: selectStyle ?? .inherit(colors: colors, typography: typography, style: style),
selectGroupStyle: selectGroupStyle ?? .inherit(colors: colors, typography: typography, style: style),
selectMenuTileStyle: selectMenuTileStyle ?? .inherit(colors: colors, typography: typography, style: style),
sidebarStyle: sidebarStyle ?? .inherit(colors: colors, typography: typography, style: style),
sliderStyles: sliderStyles ?? FSliderStyles.inherit(colors: colors, typography: typography, style: style),
toasterStyle: toasterStyle ?? .inherit(colors: colors, typography: typography, style: style),
switchStyle: switchStyle ?? .inherit(colors: colors, style: style),
tabsStyle: tabsStyle ?? .inherit(colors: colors, typography: typography, style: style),
tappableStyle: tappableStyle ?? FTappableStyle(),
textFieldStyle: textFieldStyle ?? .inherit(colors: colors, typography: typography, style: style),
tileStyles: tileStyles ?? FTileStyles.inherit(colors: colors, typography: typography, style: style),
tileGroupStyle: tileGroupStyle ?? .inherit(colors: colors, typography: typography, style: style),
timeFieldStyle: timeFieldStyle ?? .inherit(colors: colors, typography: typography, style: style),
timePickerStyle: timePickerStyle ?? .inherit(colors: colors, typography: typography, style: style),
tooltipStyle: tooltipStyle ?? .inherit(colors: colors, typography: typography, style: style),
extensions: .unmodifiable({for (final extension in extensions) extension.type: extension}),
);
}