NxButton constructor
const
NxButton({
- Key? key,
- String? text,
- VoidCallback? onPressed,
- double? width,
- double? padding,
- double? fontSize,
- NxColor? defaultButtonColor,
- Color? color = Colors.white,
- Color? borderColor = Colors.white,
- Color? iconColor = Colors.black54,
- Color? textColor = Colors.black54,
- IconData? icon,
- double? elevation = 0,
- double? radius,
- bool isLoading = false,
Implementation
const NxButton({
Key? key,
this.text,
this.onPressed,
this.width,
this.padding,
this.fontSize,
this.defaultButtonColor,
this.color = Colors.white,
this.borderColor = Colors.white,
this.iconColor = Colors.black54,
this.textColor = Colors.black54,
this.icon,
this.elevation = 0,
this.radius,
this.isLoading = false
}) : super(key: key);