NxButton constructor
const
NxButton({
- Key? key,
- 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? leftIcon,
- IconData? rightIcon,
- double? elevation = 0,
- double? radius,
- bool isLoading = false,
- Widget? child,
Implementation
const NxButton({
Key? key,
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.leftIcon,
this.rightIcon,
this.elevation = 0,
this.radius,
this.isLoading = false,
this.child,
}) : super(key: key);