MaterialCard constructor
const
MaterialCard({
- Key? key,
- required Widget child,
- GestureTapCallback? onTap,
- Color? shadowColor,
- double? borderRadius,
- double? elevation = 4,
- BorderRadiusGeometry? borderRadiusGeometry,
- Color color = Colors.white,
- EdgeInsetsGeometry padding = const EdgeInsets.all(12),
- EdgeInsetsGeometry margin = const EdgeInsets.only(top: 12),
Implementation
const MaterialCard({
Key? key,
required this.child,
this.onTap,
this.shadowColor,
this.borderRadius,
this.elevation = 4,
this.borderRadiusGeometry,
this.color = Colors.white,
this.padding = const EdgeInsets.all(12),
this.margin = const EdgeInsets.only(top: 12),
}) : super(key: key);