GradientCard constructor

const GradientCard({
  1. Key? key,
  2. required Widget child,
  3. Gradient gradient = AppGradients.brand,
  4. EdgeInsetsGeometry padding = const EdgeInsets.all(AppSpacing.lg),
  5. double radius = AppRadius.large,
  6. VoidCallback? onTap,
  7. 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,
});