cardWidget method
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.circular(4)),
mClipBehavior: clipBehavior ?? cardTheme.clipBehavior ?? Clip.none,
mBorderOnForeground: true);
}