GradientCard constructor
const
GradientCard({
- Key? key,
- required Widget child,
- Gradient gradient = AppGradients.brand,
- EdgeInsetsGeometry padding = const EdgeInsets.all(AppSpacing.lg),
- double radius = AppRadius.large,
- VoidCallback? onTap,
- Color foregroundColor = Colors.white,
Implementation
const GradientCard({
super.key,
required this.child,
this.gradient = AppGradients.brand,
this.padding = const EdgeInsets.all(AppSpacing.lg),
this.radius = AppRadius.large,
this.onTap,
this.foregroundColor = Colors.white,
});