getDefaultStyle method

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

Implementation

@override
AntdCardStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  return AntdCardStyle(
      bodyStyle: AntdBoxStyle(
          radius: token.radius.all,
          textStyle: token.font.sm,
          color: token.colorBgContainer,
          padding: token.size.lg.horizontal),
      bodyColumnStyle: const AntdFlexStyle(mainAxisSize: MainAxisSize.min),
      headerStyle: AntdBoxStyle(
          border: token.border.bottom,
          textStyle: token.font.md,
          padding: token.size.lg.vertical),
      headerRowStyle: const AntdFlexStyle(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
      ),
      extraStyle: const AntdBoxStyle(),
      titleStyle: const AntdBoxStyle(
        alignment: Alignment.center,
      ),
      contentStyle: AntdBoxStyle(padding: token.size.lg.vertical),
      footerStyle: AntdBoxStyle(
          border: token.border.top, padding: token.size.lg.vertical));
}