render method

  1. @override
Widget render(
  1. BuildContext context,
  2. AntdCardStyle style
)
override

Implementation

@override
Widget render(BuildContext context, AntdCardStyle style) {
  return AntdBox(
    style: style.bodyStyle,
    child: AntdColumn(
      style: style.bodyColumnStyle,
      children: [
        if (title != null || extra != null || icon != null)
          AntdBox(
            style: style.headerStyle,
            child: AntdRow(
              style: style.headerRowStyle,
              children: [
                if (icon != null) icon!,
                if (title != null)
                  AntdBox(
                    style: style.titleStyle,
                    child: title!,
                  ),
                if (extra != null)
                  AntdBox(
                    style: style.extraStyle,
                    child: extra!,
                  )
              ],
            ),
          ),
        if (child != null)
          AntdBox(
            style: style.contentStyle,
            child: child,
          ),
        if (footer != null)
          AntdBox(
            style: style.footerStyle,
            child: footer,
          )
      ],
    ),
  );
}