getDefaultStyle method

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

Implementation

@override
AntdJumboStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  var style = AntdJumboStyle(
    tabStyle: AntdBoxStyle(
      padding: token.size.lg.vertical,
      border: token.border.bottom,
    ),
    panelStyle: AntdBoxStyle(
      padding: token.size.lg.all,
    ),
    titleStyle: AntdBoxStyle(
        textStyle: token.font.xl, padding: token.size.xs.horizontal),
    activeTitleStyle:
        AntdBoxStyle(textStyle: TextStyle(color: token.colorPrimary)),
    descStyle: AntdBoxStyle(
      radius: token.radius.lg.all,
      margin: token.size.xxs.top,
      padding: token.size.ms.horizontal,
      color: token.colorFill.tertiary,
      textStyle: token.font.sm.copyWith(color: token.colorText.tertiary),
    ),
    activeDescTextStyle: AntdBoxStyle(
        color: token.colorPrimary,
        textStyle: TextStyle(color: token.colorWhite)),
  );
  return margeStyle(
      style, theme.jumboStyle?.call(context, this, style, token));
}