getDefaultStyle method

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

Implementation

@override
AntdTabsStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  var style = AntdTabsStyle(
      tabStyle: AntdBoxStyle(
        border: token.border.bottom,
      ),
      panelStyle: AntdBoxStyle(
        padding: token.size.lg.all,
      ),
      activeTitleStyle: AntdBoxStyle(
          textStyle: TextStyle(color: token.colorPrimary.textActive)),
      titleStyle: AntdBoxStyle(
          padding: token.size.ms.top
              .marge(token.size.md.bottom)
              .marge(token.size.lg.horizontal),
          textStyle: token.font.lg,
          options: const AntdTapOptions(alwaysReceiveTap: true)),
      indicatorStyle: AntdBoxStyle(
        color: token.colorPrimary,
        height: token.lineWidth + 1,
      ));
  return style;
}