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. FAlertStyles? alertStyles,
  8. FAvatarStyle? avatarStyle,
  9. FBadgeStyles? badgeStyles,
  10. FBottomNavigationBarStyle? bottomNavigationBarStyle,
  11. FBreadcrumbStyle? breadcrumbStyle,
  12. FButtonStyles? buttonStyles,
  13. FCalendarStyle? calendarStyle,
  14. FCardStyle? cardStyle,
  15. FCheckboxStyle? checkboxStyle,
  16. FDateFieldStyle? dateFieldStyle,
  17. FDialogStyle? dialogStyle,
  18. FDividerStyles? dividerStyles,
  19. FHeaderStyles? headerStyles,
  20. FLabelStyles? labelStyles,
  21. FLineCalendarStyle? lineCalendarStyle,
  22. FPaginationStyle? paginationStyle,
  23. FPickerStyle? pickerStyle,
  24. FPopoverStyle? popoverStyle,
  25. FPopoverMenuStyle? popoverMenuStyle,
  26. FProgressStyles? progressStyles,
  27. FRadioStyle? radioStyle,
  28. FResizableStyle? resizableStyle,
  29. FScaffoldStyle? scaffoldStyle,
  30. FSelectStyle? selectStyle,
  31. FSelectGroupStyle? selectGroupStyle,
  32. FSelectMenuTileStyle? selectMenuTileStyle,
  33. FSheetStyle? sheetStyle,
  34. FSidebarStyle? sidebarStyle,
  35. FSliderStyles? sliderStyles,
  36. FToasterStyle? toasterStyle,
  37. FSwitchStyle? switchStyle,
  38. FTabsStyle? tabsStyle,
  39. FTappableStyle? tappableStyle,
  40. FTextFieldStyle? textFieldStyle,
  41. FTileGroupStyle? tileGroupStyle,
  42. FTimeFieldStyle? timeFieldStyle,
  43. FTimePickerStyle? timePickerStyle,
  44. FTooltipStyle? tooltipStyle,
})

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,
  FAlertStyles? alertStyles,
  FAvatarStyle? avatarStyle,
  FBadgeStyles? badgeStyles,
  FBottomNavigationBarStyle? bottomNavigationBarStyle,
  FBreadcrumbStyle? breadcrumbStyle,
  FButtonStyles? buttonStyles,
  FCalendarStyle? calendarStyle,
  FCardStyle? cardStyle,
  FCheckboxStyle? checkboxStyle,
  FDateFieldStyle? dateFieldStyle,
  FDialogStyle? dialogStyle,
  FDividerStyles? dividerStyles,
  FHeaderStyles? headerStyles,
  FLabelStyles? labelStyles,
  FLineCalendarStyle? lineCalendarStyle,
  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,
  FTileGroupStyle? tileGroupStyle,
  FTimeFieldStyle? timeFieldStyle,
  FTimePickerStyle? timePickerStyle,
  FTooltipStyle? tooltipStyle,
}) {
  typography = typography ?? FTypography.inherit(colors: colors);
  style = 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),
    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),
    dateFieldStyle: dateFieldStyle ?? FDateFieldStyle.inherit(colors: colors, typography: typography, style: style),
    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),
    labelStyles: labelStyles ?? FLabelStyles.inherit(style: style),
    lineCalendarStyle:
        lineCalendarStyle ?? FLineCalendarStyle.inherit(colors: colors, typography: typography, style: style),
    paginationStyle:
        paginationStyle ?? FPaginationStyle.inherit(colors: colors, typography: typography, style: style),
    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),
    progressStyles: progressStyles ?? FProgressStyles.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),
    sheetStyle: sheetStyle ?? FSheetStyle.inherit(colors: colors),
    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),
    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),
  );
}