PlexCard constructor

const PlexCard({
  1. Key? key,
  2. required Widget child,
  3. GestureTapCallback? onTap,
  4. GestureLongPressCallback? onLongPressed,
  5. EdgeInsets? margin,
  6. bool borderOnForeground = true,
  7. ShapeBorder? shape,
  8. double cornerRadius = PlexDim.small,
  9. double borderWidth = 0,
  10. Color borderColor = Colors.grey,
  11. Color? color,
  12. Color? surfaceTintColor,
  13. Color? shadowColor,
  14. double elevation = PlexDim.medium,
  15. bool disableDefaultPadding = false,
  16. EdgeInsets? padding,
})

Implementation

const PlexCard({
  super.key,
  required this.child,
  this.onTap,
  this.onLongPressed,
  this.margin,
  this.borderOnForeground = true,
  this.shape,
  this.cornerRadius = PlexDim.small,
  this.borderWidth = 0,
  this.borderColor = Colors.grey,
  this.color,
  this.surfaceTintColor,
  this.shadowColor,
  this.elevation = PlexDim.medium,
  this.disableDefaultPadding = false,
  this.padding,
});