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})
  : this(
      FVariants(
        FHeaderStyle(
          systemOverlayStyle: colors.systemOverlayStyle,
          titleTextStyle: typography.xl3.copyWith(color: colors.foreground, fontWeight: .w700, height: 1),
          actionStyle: .inherit(colors: colors, style: style, size: 30),
          padding: style.pagePadding.copyWith(bottom: 15),
        ),
        variants: {
          [.nested]: FHeaderStyle(
            systemOverlayStyle: colors.systemOverlayStyle,
            titleTextStyle: typography.xl.copyWith(color: colors.foreground, fontWeight: .w600, height: 1),
            actionStyle: .inherit(colors: colors, style: style, size: 25),
            padding: style.pagePadding.copyWith(bottom: 15),
          ),
        },
      ),
    );