getDefaultStyle method

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

Implementation

@override
AntdIndexBarStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  var headerStyle = AntdBoxStyle(
      width: double.infinity,
      padding: token.size.lg.horizontal.marge(token.size.seed.vertical),
      color: token.colorBgLayout,
      textStyle: token.font.sm.copyWith(color: token.colorText.tertiary),
      border: token.border.vertical);
  var indexStyle = AntdBoxStyle(
    size: token.size.xl.roundToDouble(),
    radius: BorderRadius.circular(token.size.xl.roundToDouble()),
    margin: token.size.lg.horizontal,
    textStyle: token.font.xs.copyWith(color: token.colorText.tertiary),
    alignment: Alignment.center,
  );
  return AntdIndexBarStyle(
      bodyStyle: const AntdBoxStyle(),
      floatHeaderStyle: headerStyle,
      headerStyle: headerStyle,
      itemStyle: AntdBoxStyle(
          color: token.colorBgContainer,
          width: double.infinity,
          border: token.border.bottom,
          textStyle: token.font.xl,
          padding: token.size.lg.right.marge(token.size.lg.vertical)),
      indexStyle: indexStyle,
      activeIndexStyle: indexStyle.copyWith(
          textStyle: token.font.xs.copyWith(color: token.colorWhite),
          color: token.colorPrimary));
}