Card constructor

const Card({
  1. Key? key,
  2. Widget? child,
  3. EdgeInsetsGeometry padding = const EdgeInsets.all(AppSpacing.lg),
  4. EdgeInsetsGeometry? margin,
  5. Color? color,
  6. Gradient? gradient,
  7. double borderRadius = AppRadius.large,
  8. List<BoxShadow>? shadows,
  9. bool elevated = true,
  10. Color? borderColor,
  11. VoidCallback? onTap,
  12. VoidCallback? onLongPress,
  13. BoxConstraints? constraints,
  14. Clip clipBehavior = Clip.antiAlias,
  15. ShapeBorder? shape,
  16. double? elevation,
  17. Decoration? decoration,
})

Implementation

const Card({
  super.key,
  this.child,
  this.padding = const EdgeInsets.all(AppSpacing.lg),
  this.margin,
  this.color,
  this.gradient,
  this.borderRadius = AppRadius.large,
  this.shadows,
  this.elevated = true,
  this.borderColor,
  this.onTap,
  this.onLongPress,
  this.constraints,
  this.clipBehavior = Clip.antiAlias,
  this.shape,
  this.elevation,
  this.decoration,
});