getDefaultStyle method

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

Implementation

@override
AntdStepsStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  var titleTextStyle = token.font.sm;
  var titleStyle = AntdBoxStyle(
      textStyle: titleTextStyle,
      padding: vertical
          ? null
          : token.size.xxs.top.marge(token.size.seed.horizontal));
  var descTextStyle = AntdBoxStyle(
      margin: vertical
          ? token.size.xs.top.marge(token.size.xl.bottom)
          : token.size.xs.top,
      textStyle: token.font.xs.copyWith(color: token.colorText.tertiary));
  return AntdStepsStyle(
      titleStyle: titleStyle,
      activeTitleStyle: titleStyle.copyWith(
          textStyle: titleTextStyle.copyWith(color: token.colorPrimary)),
      descStyle: descTextStyle,
      activeDescStyle: descTextStyle,
      lineStyle: AntdBoxStyle(color: token.colorFill.quaternary),
      activeLineStyle: AntdBoxStyle(color: token.colorPrimary),
      stepStyle: AntdBoxStyle(
          color: token.colorFill.quaternary,
          radius: const Radius.circular(8).all,
          size: 8,
          margin: vertical
              ? token.size.seed.horizontal
              : token.size.seed.vertical),
      stepColumnStyle: AntdFlexStyle(
        crossAxisAlignment:
            vertical ? CrossAxisAlignment.start : CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.start,
      ));
}