cardWidget method

Widget cardWidget(
  1. Widget current,
  2. BuildContext context
)

Implementation

Widget cardWidget(Widget current, BuildContext context) {
  final ThemeData theme = Theme.of(context);
  final CardTheme cardTheme = CardTheme.of(context);
  return material(current,
      mType: MaterialType.card,
      mShadowColor: shadowColor ?? cardTheme.shadowColor ?? theme.shadowColor,
      mColor: color ?? cardTheme.color ?? theme.cardColor,
      mElevation: elevation ?? cardTheme.elevation ?? 10,
      mShape: shape ??
          cardTheme.shape ??
          RoundedRectangleBorder(
              borderRadius: borderRadius == BorderRadius.zero
                  ? BorderRadius.circular(4)
                  : borderRadius),
      mClipBehavior: clipBehavior ?? cardTheme.clipBehavior ?? Clip.none,
      mBorderOnForeground: true);
}