FThemeData constructor

FThemeData({
  1. required FColors colors,
  2. String? debugLabel,
  3. FBreakpoints breakpoints = const FBreakpoints(),
  4. FTypography? typography,
  5. FStyle? style,
  6. FAccordionStyle? accordionStyle,
  7. FAutocompleteStyle? autocompleteStyle,
  8. FAlertStyles? alertStyles,
  9. FAvatarStyle? avatarStyle,
  10. FBadgeStyles? badgeStyles,
  11. FBottomNavigationBarStyle? bottomNavigationBarStyle,
  12. FBreadcrumbStyle? breadcrumbStyle,
  13. FButtonStyles? buttonStyles,
  14. FCalendarStyle? calendarStyle,
  15. FCardStyle? cardStyle,
  16. FCheckboxStyle? checkboxStyle,
  17. FCircularProgressStyle? circularProgressStyle,
  18. FDateFieldStyle? dateFieldStyle,
  19. FDeterminateProgressStyle? determinateProgressStyle,
  20. FDialogRouteStyle? dialogRouteStyle,
  21. FDialogStyle? dialogStyle,
  22. FDividerStyles? dividerStyles,
  23. FHeaderStyles? headerStyles,
  24. FItemStyle? itemStyle,
  25. FItemGroupStyle? itemGroupStyle,
  26. FLabelStyles? labelStyles,
  27. FLineCalendarStyle? lineCalendarStyle,
  28. FMultiSelectStyle? multiSelectStyle,
  29. FModalSheetStyle? modalSheetStyle,
  30. FPaginationStyle? paginationStyle,
  31. FPersistentSheetStyle? persistentSheetStyle,
  32. FPickerStyle? pickerStyle,
  33. FPopoverStyle? popoverStyle,
  34. FPopoverMenuStyle? popoverMenuStyle,
  35. FProgressStyle? progressStyle,
  36. FRadioStyle? radioStyle,
  37. FResizableStyle? resizableStyle,
  38. FScaffoldStyle? scaffoldStyle,
  39. FSelectStyle? selectStyle,
  40. FSelectGroupStyle? selectGroupStyle,
  41. FSelectMenuTileStyle? selectMenuTileStyle,
  42. FSidebarStyle? sidebarStyle,
  43. FSliderStyles? sliderStyles,
  44. FToasterStyle? toasterStyle,
  45. FSwitchStyle? switchStyle,
  46. FTabsStyle? tabsStyle,
  47. FTappableStyle? tappableStyle,
  48. FTextFieldStyle? textFieldStyle,
  49. FTileStyle? tileStyle,
  50. FTileGroupStyle? tileGroupStyle,
  51. FTimeFieldStyle? timeFieldStyle,
  52. FTimePickerStyle? timePickerStyle,
  53. FTooltipStyle? tooltipStyle,
  54. 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,
  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<dynamic>> extensions = const [],
}) {
  typography ??= FTypography.inherit(colors: colors);
  style ??= FStyle.inherit(colors: colors, typography: typography);
  return FThemeData._(
    debugLabel: debugLabel,
    breakpoints: breakpoints,
    colors: colors,
    typography: typography,
    style: style,
    accordionStyle: accordionStyle ?? FAccordionStyle.inherit(colors: colors, typography: typography, style: style),
    autocompleteStyle:
        autocompleteStyle ?? FAutocompleteStyle.inherit(colors: colors, typography: typography, style: style),
    alertStyles: alertStyles ?? FAlertStyles.inherit(colors: colors, typography: typography, style: style),
    avatarStyle: avatarStyle ?? FAvatarStyle.inherit(colors: colors, typography: typography),
    badgeStyles: badgeStyles ?? FBadgeStyles.inherit(colors: colors, typography: typography, style: style),
    bottomNavigationBarStyle:
        bottomNavigationBarStyle ??
        FBottomNavigationBarStyle.inherit(colors: colors, typography: typography, style: style),
    breadcrumbStyle:
        breadcrumbStyle ?? FBreadcrumbStyle.inherit(colors: colors, typography: typography, style: style),
    buttonStyles: buttonStyles ?? FButtonStyles.inherit(colors: colors, typography: typography, style: style),
    calendarStyle: calendarStyle ?? FCalendarStyle.inherit(colors: colors, typography: typography, style: style),
    cardStyle: cardStyle ?? FCardStyle.inherit(colors: colors, typography: typography, style: style),
    checkboxStyle: checkboxStyle ?? FCheckboxStyle.inherit(colors: colors, style: style),
    circularProgressStyle: circularProgressStyle ?? FCircularProgressStyle.inherit(colors: colors),
    dateFieldStyle: dateFieldStyle ?? FDateFieldStyle.inherit(colors: colors, typography: typography, style: style),
    determinateProgressStyle:
        determinateProgressStyle ?? FDeterminateProgressStyle.inherit(colors: colors, style: style),
    dialogRouteStyle: dialogRouteStyle ?? FDialogRouteStyle.inherit(colors: colors),
    dialogStyle: dialogStyle ?? FDialogStyle.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),
    itemStyle: itemStyle ?? FItemStyle.inherit(colors: colors, typography: typography, style: style),
    itemGroupStyle: itemGroupStyle ?? FItemGroupStyle.inherit(colors: colors, typography: typography, style: style),
    labelStyles: labelStyles ?? FLabelStyles.inherit(style: style),
    lineCalendarStyle:
        lineCalendarStyle ?? FLineCalendarStyle.inherit(colors: colors, typography: typography, style: style),
    multiSelectStyle:
        multiSelectStyle ?? FMultiSelectStyle.inherit(colors: colors, typography: typography, style: style),
    modalSheetStyle: modalSheetStyle ?? FModalSheetStyle.inherit(colors: colors),
    paginationStyle:
        paginationStyle ?? FPaginationStyle.inherit(colors: colors, typography: typography, style: style),
    persistentSheetStyle: persistentSheetStyle ?? const FPersistentSheetStyle(),
    pickerStyle: pickerStyle ?? FPickerStyle.inherit(colors: colors, style: style, typography: typography),
    popoverStyle: popoverStyle ?? FPopoverStyle.inherit(colors: colors, style: style),
    popoverMenuStyle:
        popoverMenuStyle ?? FPopoverMenuStyle.inherit(colors: colors, style: style, typography: typography),
    progressStyle: progressStyle ?? FProgressStyle.inherit(colors: colors, style: style),
    radioStyle: radioStyle ?? FRadioStyle.inherit(colors: colors, style: style),
    resizableStyle: resizableStyle ?? FResizableStyle.inherit(colors: colors, style: style),
    scaffoldStyle: scaffoldStyle ?? FScaffoldStyle.inherit(colors: colors, style: style),
    selectStyle: selectStyle ?? FSelectStyle.inherit(colors: colors, typography: typography, style: style),
    selectGroupStyle:
        selectGroupStyle ?? FSelectGroupStyle.inherit(colors: colors, typography: typography, style: style),
    selectMenuTileStyle:
        selectMenuTileStyle ?? FSelectMenuTileStyle.inherit(colors: colors, typography: typography, style: style),
    sidebarStyle: sidebarStyle ?? FSidebarStyle.inherit(colors: colors, typography: typography, style: style),
    sliderStyles: sliderStyles ?? FSliderStyles.inherit(colors: colors, typography: typography, style: style),
    toasterStyle: toasterStyle ?? FToasterStyle.inherit(colors: colors, typography: typography, style: style),
    switchStyle: switchStyle ?? FSwitchStyle.inherit(colors: colors, style: style),
    tabsStyle: tabsStyle ?? FTabsStyle.inherit(colors: colors, typography: typography, style: style),
    tappableStyle: tappableStyle ?? FTappableStyle(),
    textFieldStyle: textFieldStyle ?? FTextFieldStyle.inherit(colors: colors, typography: typography, style: style),
    tileStyle: tileStyle ?? FTileStyle.inherit(colors: colors, typography: typography, style: style),
    tileGroupStyle: tileGroupStyle ?? FTileGroupStyle.inherit(colors: colors, typography: typography, style: style),
    timeFieldStyle: timeFieldStyle ?? FTimeFieldStyle.inherit(colors: colors, typography: typography, style: style),
    timePickerStyle:
        timePickerStyle ?? FTimePickerStyle.inherit(colors: colors, typography: typography, style: style),
    tooltipStyle: tooltipStyle ?? FTooltipStyle.inherit(colors: colors, typography: typography, style: style),
    extensions: Map.unmodifiable({for (final extension in extensions) extension.type: extension}),
  );
}