getDefaultStyle method

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

Implementation

@override
AntdActionStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  var superStyle = AntdActionStyle.defaultStyle(token, this);
  return margeStyle(
      superStyle,
      AntdActionStyle(
          bodyStyle: AntdBoxStyle(
              border: bottom == true
                  ? token.border.horizontal
                  : token.border.bottom,
              padding:
                  token.size.md.vertical.marge(token.size.lg.horizontal)),
          titleStyle: AntdBoxStyle(
              textStyle: superStyle.titleStyle?.textStyle?.copyWith(
                  color: primary != false && danger != true
                      ? token.colorPrimary
                      : null))));
}