PrimaryButton constructor

const PrimaryButton({
  1. Key? key,
  2. required String label,
  3. VoidCallback? onPressed,
  4. IconData? icon,
  5. Gradient? gradient,
  6. bool expanded = false,
  7. bool loading = false,
  8. double? width,
  9. double height = 48,
  10. double radius = AppRadius.medium,
  11. bool elevated = true,
  12. EdgeInsetsGeometry? padding,
})

Implementation

const PrimaryButton({
  super.key,
  required this.label,
  this.onPressed,
  this.icon,
  this.gradient,
  this.expanded = false,
  this.loading = false,
  this.width,
  this.height = 48,
  this.radius = AppRadius.medium,
  this.elevated = true,
  this.padding,
});