getDefaultStyle method

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

Implementation

@override
AntdSliderBarStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  var titleStyle = AntdBoxStyle(
      padding: token.size.xl.vertical.marge(token.size.lg.horizontal),
      color: token.colorFill.tertiary,
      textStyle: token.font.sm);
  var indicatorStyle = AntdBoxStyle(
      width: token.size.xxs.roundToDouble(),
      height: token.size.lg.roundToDouble(),
      color: token.colorTransparent);
  return AntdSliderBarStyle(
      activeCornerRadius: token.radius.lg,
      bodyStyle: AntdBoxStyle(color: token.colorFill.tertiary, width: 100),
      indicatorStyle: indicatorStyle,
      activeIndicatorStyle: AntdBoxStyle(color: token.colorPrimary),
      titleStyle: titleStyle,
      activeTitleStyle: AntdBoxStyle(
          radius: BorderRadius.circular(0),
          color: token.colorBgLayout,
          textStyle: token.font.sm.copyWith(color: token.colorPrimary)));
}