FHeaderStyles.inherit constructor

FHeaderStyles.inherit({
  1. required FColors colors,
  2. required FTypography typography,
  3. required FStyle style,
})

Creates a FHeaderStyles that inherits its properties.

Implementation

FHeaderStyles.inherit({required FColors colors, required FTypography typography, required FStyle style})
  : rootStyle = FHeaderStyle(
      titleTextStyle: typography.xl3.copyWith(color: colors.foreground, fontWeight: FontWeight.w700, height: 1),
      actionStyle: FHeaderActionStyle.inherit(colors: colors, style: style, size: 30),
      padding: style.pagePadding.copyWith(bottom: 15),
    ),
    nestedStyle = FHeaderStyle(
      titleTextStyle: typography.xl.copyWith(color: colors.foreground, fontWeight: FontWeight.w600, height: 1),
      actionStyle: FHeaderActionStyle.inherit(colors: colors, style: style, size: 25),
      padding: style.pagePadding.copyWith(bottom: 15),
    );