FTabsStyle.inherit constructor

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

Creates a FTabsStyle that inherits its properties from colorScheme.

Implementation

FTabsStyle.inherit({required FColorScheme colorScheme, required FTypography typography, required FStyle style})
    : decoration = BoxDecoration(
        border: Border.all(color: colorScheme.muted),
        borderRadius: style.borderRadius,
        color: colorScheme.muted,
      ),
      padding = const EdgeInsets.all(4),
      selectedLabel = typography.sm.copyWith(
        fontWeight: FontWeight.w500,
        fontFamily: typography.defaultFontFamily,
        color: colorScheme.foreground,
      ),
      unselectedLabel = typography.sm.copyWith(
        fontWeight: FontWeight.w500,
        fontFamily: typography.defaultFontFamily,
        color: colorScheme.mutedForeground,
      ),
      indicatorSize = FTabBarIndicatorSize.tab,
      indicator = BoxDecoration(
        color: colorScheme.background,
        borderRadius: style.borderRadius,
      ),
      height = 35,
      spacing = 10;