NiceButton constructor

const NiceButton({
  1. Key? key,
  2. required String label,
  3. VoidCallback? onPressed,
  4. IconData? icon,
  5. NiceButtonVariant variant = NiceButtonVariant.filled,
  6. NiceButtonSize size = NiceButtonSize.medium,
  7. Color? color,
  8. bool loading = false,
  9. bool disabled = false,
  10. bool fullWidth = false,
})

Implementation

const NiceButton({
  super.key,
  required this.label,
  this.onPressed,
  this.icon,
  this.variant = NiceButtonVariant.filled,
  this.size = NiceButtonSize.medium,
  this.color,
  this.loading = false,
  this.disabled = false,
  this.fullWidth = false,
});