FBottomNavigationBarItemStyle.inherit constructor

FBottomNavigationBarItemStyle.inherit({
  1. required FColorScheme colorScheme,
  2. required FTypography typography,
})

Creates a FBottomNavigationBarItemStyle that inherits its properties from the given FColorScheme and FTypography.

Implementation

FBottomNavigationBarItemStyle.inherit({required FColorScheme colorScheme, required FTypography typography})
    : this(
        activeIconColor: colorScheme.primary,
        inactiveIconColor: colorScheme.disable(colorScheme.foreground),
        activeTextStyle: typography.base.copyWith(
          color: colorScheme.primary,
          fontSize: 10,
        ),
        inactiveTextStyle: typography.base.copyWith(
          color: colorScheme.disable(colorScheme.foreground),
          fontSize: 10,
        ),
      );