NiceButton constructor
const
NiceButton({ - Key? key,
- required String label,
- VoidCallback? onPressed,
- IconData? icon,
- NiceButtonVariant variant = NiceButtonVariant.filled,
- NiceButtonSize size = NiceButtonSize.medium,
- Color? color,
- bool loading = false,
- bool disabled = false,
- 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,
});