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(
      padding: token.size.lg.vertical,
      border: token.border.bottom,
    ),
    panelStyle: AntdBoxStyle(
      padding: token.size.lg.all,
    ),
    activeTitleStyle: AntdBoxStyle(
        color: token.colorPrimary,
        textStyle: TextStyle(color: token.colorWhite)),
    titleStyle: AntdBoxStyle(
      radius: BorderRadius.circular(20),
      color: token.colorFill.tertiary,
      margin: token.size.sm.horizontal,
      padding: token.size.ms.vertical.marge(token.size.xxl.horizontal),
      textStyle: token.font.md,
    ),
  );
  return margeStyle(
      style, theme.capsuleTabsStyle?.call(context, this, style, token));
}