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,
  17. String? title,
  18. String? subtitle,
  19. Widget? actions,
  20. Widget? footer,
  21. bool hover = false,
  22. bool flush = false,
})

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,
  this.title,
  this.subtitle,
  this.actions,
  this.footer,
  this.hover = false,
  this.flush = false,
});