CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required String label,
  3. required VoidCallback? onPressed,
  4. IconData? icon,
  5. ButtonVariant variant = ButtonVariant.elevated,
  6. ButtonSize size = ButtonSize.medium,
  7. bool fullWidth = false,
  8. bool loading = false,
})

Implementation

const CustomButton({
  super.key,
  required this.label,
  required this.onPressed,
  this.icon,
  this.variant = ButtonVariant.elevated,
  this.size = ButtonSize.medium,
  this.fullWidth = false,
  this.loading = false,
});