LoadingButton constructor

const LoadingButton({
  1. Key? key,
  2. required String label,
  3. required VoidCallback onPressed,
  4. bool loading = false,
  5. IconData? icon,
  6. ButtonVariant variant = ButtonVariant.primary,
  7. bool expanded = false,
  8. double? width,
  9. double height = 48,
  10. double radius = AppRadius.medium,
})

Implementation

const LoadingButton({
  super.key,
  required this.label,
  required this.onPressed,
  this.loading = false,
  this.icon,
  this.variant = ButtonVariant.primary,
  this.expanded = false,
  this.width,
  this.height = 48,
  this.radius = AppRadius.medium,
});