Card constructor
const
Card({
- Key? key,
- Widget? child,
- EdgeInsetsGeometry padding = const EdgeInsets.all(AppSpacing.lg),
- EdgeInsetsGeometry? margin,
- Color? color,
- Gradient? gradient,
- double borderRadius = AppRadius.large,
- List<
BoxShadow> ? shadows, - bool elevated = true,
- Color? borderColor,
- VoidCallback? onTap,
- VoidCallback? onLongPress,
- BoxConstraints? constraints,
- Clip clipBehavior = Clip.antiAlias,
- ShapeBorder? shape,
- double? elevation,
- 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,
});