FThemeData.inherit constructor

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

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

Implementation

factory FThemeData.inherit({
  required FColorScheme colorScheme,
  FStyle? style,
  FTypography? typography,
}) {
  typography ??= FTypography.inherit(colorScheme: colorScheme);
  style ??= FStyle.inherit(colorScheme: colorScheme, typography: typography);
  return FThemeData(
    colorScheme: colorScheme,
    typography: typography,
    style: style,
    accordionStyle: FAccordionStyle.inherit(colorScheme: colorScheme, typography: typography),
    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),
    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),
    popoverStyle: FPopoverStyle.inherit(colorScheme: colorScheme, style: style),
    progressStyle: FProgressStyle.inherit(colorScheme: colorScheme, style: style),
    radioStyle: FRadioStyle.inherit(colorScheme: colorScheme, style: style),
    resizableStyle: FResizableStyle.inherit(colorScheme: colorScheme),
    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),
    scaffoldStyle: FScaffoldStyle.inherit(colorScheme: colorScheme, style: style),
    selectGroupStyle: FSelectGroupStyle.inherit(colorScheme: colorScheme, typography: typography, style: style),
    sliderStyles: FSliderStyles.inherit(colorScheme: colorScheme, typography: typography, style: style),
    switchStyle: FSwitchStyle.inherit(colorScheme: colorScheme, style: style),
  );
}