AppCard constructor

const AppCard({
  1. Key? key,
  2. AppCardVariant variant = AppCardVariant.elevated,
  3. String? title,
  4. String? subtitle,
  5. Widget? leading,
  6. Widget? trailing,
  7. Widget? child,
  8. List<Widget>? actions,
  9. VoidCallback? onTap,
  10. VoidCallback? onLongPress,
  11. EdgeInsets? padding,
  12. EdgeInsets? margin,
  13. double? elevation,
  14. Color? backgroundColor,
  15. double? borderRadius,
  16. Color? borderColor,
  17. double? borderWidth,
  18. TextStyle? titleStyle,
  19. TextStyle? subtitleStyle,
  20. EdgeInsetsGeometry? headerPadding,
  21. EdgeInsetsGeometry? actionsPadding,
  22. Color? shadowColor,
  23. MainAxisAlignment? actionsAlignment,
  24. double? headerSpacing,
})

Creates a card.

Implementation

const AppCard({
  super.key,
  this.variant = AppCardVariant.elevated,
  this.title,
  this.subtitle,
  this.leading,
  this.trailing,
  this.child,
  this.actions,
  this.onTap,
  this.onLongPress,
  this.padding,
  this.margin,
  this.elevation,
  this.backgroundColor,
  this.borderRadius,
  this.borderColor,
  this.borderWidth,
  this.titleStyle,
  this.subtitleStyle,
  this.headerPadding,
  this.actionsPadding,
  this.shadowColor,
  this.actionsAlignment,
  this.headerSpacing,
});