MaterialCard constructor

const MaterialCard({
  1. Key? key,
  2. required Widget child,
  3. GestureTapCallback? onTap,
  4. Color? shadowColor,
  5. double? borderRadius,
  6. double? elevation = 4,
  7. BorderRadiusGeometry? borderRadiusGeometry,
  8. Color color = Colors.white,
  9. EdgeInsetsGeometry padding = const EdgeInsets.all(12),
  10. 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);