getDefaultStyle method

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

Implementation

@override
AntdLoadingStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  var relaColor = color == null ? token.colorFill : color?.getColor(token);
  return AntdLoadingStyle(
      color: relaColor,
      size: size ?? (circular == true ? 24 : 4),
      duration: circular == true
          ? const Duration(milliseconds: 600)
          : const Duration(milliseconds: 1000),
      textStyle: AntdBoxStyle(
          padding: token.size.md.left,
          textStyle: token.font.ms.copyWith(color: relaColor)));
}