getDefaultStyle method

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

Implementation

@override
AntdPageIndicatorStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  var activeSize = vertical ? const Size(3, 13) : const Size(13, 3);
  var margin = vertical ? token.size.xxs.bottom : token.size.xxs.left;
  return AntdPageIndicatorStyle(
      style: AntdBoxStyle(
          height: 3,
          width: 3,
          margin: margin,
          color: token.colorFill.quaternary),
      activeStyle: AntdBoxStyle(
          height: activeSize.height,
          width: activeSize.width,
          margin: margin,
          color: color.getColor(token)));
}