getDefaultStyle method

  1. @override
AntdTabBarStyle getDefaultStyle(
  1. BuildContext context,
  2. AntdTheme theme,
  3. AntdMapToken token
)
override

Implementation

@override
AntdTabBarStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  var titleTextStyle =
      token.font.xxs.copyWith(color: token.colorText.secondary);
  var iconStyle = AntdIconStyle(
      size: token.size.xxl.roundToDouble(),
      color: token.colorText.secondary,
      weight: 800);
  var titleStyle =
      AntdBoxStyle(textStyle: titleTextStyle, margin: token.size.xxs.top);
  return AntdTabBarStyle(
      itemStyle: AntdBoxStyle(
          padding: token.size.xs.vertical.marge(token.size.ms.horizontal)),
      itemColumnStyle: const AntdFlexStyle(
        mainAxisSize: MainAxisSize.min,
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
      ),
      iconStyle: iconStyle,
      activeIconStyle: AntdIconStyle(color: token.colorPrimary),
      titleStyle: titleStyle,
      activeTitleStyle: AntdBoxStyle(
          textStyle: titleTextStyle.copyWith(color: token.colorPrimary)));
}