FThemeData.inherit constructor

FThemeData.inherit({
  1. required FColorScheme colorScheme,
  2. String? debugLabel,
  3. FStyle? style,
  4. FTypography? typography,
})

Creates a FThemeData that configures the widget styles using the given properties.

Implementation

factory FThemeData.inherit({
  required FColorScheme colorScheme,
  String? debugLabel,
  FStyle? style,
  FTypography? typography,
}) {
  typography ??= FTypography.inherit(colorScheme: colorScheme);
  style ??= FStyle.inherit(colorScheme: colorScheme, typography: typography);
  return FThemeData(
    debugLabel: debugLabel,
    colorScheme: colorScheme,
    typography: typography,
    style: style,
    accordionStyle: FAccordionStyle.inherit(colorScheme: colorScheme, typography: typography, style: style),
    alertStyles: FAlertStyles.inherit(colorScheme: colorScheme, typography: typography, style: style),
    avatarStyle: FAvatarStyle.inherit(colorScheme: colorScheme, typography: typography),
    badgeStyles: FBadgeStyles.inherit(colorScheme: colorScheme, typography: typography, style: style),
    bottomNavigationBarStyle: FBottomNavigationBarStyle.inherit(
      colorScheme: colorScheme,
      typography: typography,
      style: style,
    ),
    buttonStyles: FButtonStyles.inherit(colorScheme: colorScheme, typography: typography, style: style),
    calendarStyle: FCalendarStyle.inherit(colorScheme: colorScheme, typography: typography, style: style),
    cardStyle: FCardStyle.inherit(colorScheme: colorScheme, typography: typography, style: style),
    checkboxStyle: FCheckboxStyle.inherit(colorScheme: colorScheme, style: style),
    dialogStyle: FDialogStyle.inherit(colorScheme: colorScheme, typography: typography, style: style),
    dividerStyles: FDividerStyles.inherit(colorScheme: colorScheme, style: style),
    headerStyle: FHeaderStyles.inherit(colorScheme: colorScheme, typography: typography, style: style),
    labelStyles: FLabelStyles.inherit(style: style),
    lineCalendarStyle: FLineCalendarStyle.inherit(colorScheme: colorScheme, typography: typography, style: style),
    popoverStyle: FPopoverStyle.inherit(colorScheme: colorScheme, style: style),
    popoverMenuStyle: FPopoverMenuStyle.inherit(colorScheme: colorScheme, style: style, typography: typography),
    progressStyle: FProgressStyle.inherit(colorScheme: colorScheme, style: style),
    radioStyle: FRadioStyle.inherit(colorScheme: colorScheme, style: style),
    resizableStyle: FResizableStyle.inherit(colorScheme: colorScheme, style: style),
    scaffoldStyle: FScaffoldStyle.inherit(colorScheme: colorScheme, style: style),
    selectGroupStyle: FSelectGroupStyle.inherit(colorScheme: colorScheme, typography: typography, style: style),
    selectMenuTileStyle: FSelectMenuTileStyle.inherit(colorScheme: colorScheme, typography: typography, style: style),
    sheetStyle: FSheetStyle.inherit(colorScheme: colorScheme),
    sliderStyles: FSliderStyles.inherit(colorScheme: colorScheme, typography: typography, style: style),
    switchStyle: FSwitchStyle.inherit(colorScheme: colorScheme, style: style),
    tabsStyle: FTabsStyle.inherit(colorScheme: colorScheme, typography: typography, style: style),
    textFieldStyle: FTextFieldStyle.inherit(colorScheme: colorScheme, typography: typography, style: style),
    tooltipStyle: FTooltipStyle.inherit(colorScheme: colorScheme, typography: typography, style: style),
    tileGroupStyle: FTileGroupStyle.inherit(colorScheme: colorScheme, typography: typography, style: style),
  );
}