FTabsStyle.inherit constructor

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

Creates a FTabsStyle that inherits its properties.

Implementation

FTabsStyle.inherit({required FColors colors, required FTypography typography, required FStyle style})
  : this(
      decoration: ShapeDecoration(
        shape: RoundedSuperellipseBorder(
          side: BorderSide(color: colors.muted, width: style.borderWidth),
          borderRadius: style.borderRadius.md,
        ),
        color: colors.muted,
      ),
      labelTextStyle: FVariants.from(
        typography.sm.copyWith(
          fontWeight: .w500,
          fontFamily: typography.defaultFontFamily,
          color: colors.mutedForeground,
        ),
        variants: {
          [.selected]: .delta(color: colors.foreground),
        },
      ),
      indicatorDecoration: ShapeDecoration(
        shape: RoundedSuperellipseBorder(borderRadius: style.borderRadius.md),
        color: colors.background,
      ),
      focusedOutlineStyle: style.focusedOutlineStyle,
    );