NxButton.primary constructor
NxButton.primary({})
Implementation
factory NxButton.primary({
VoidCallback? onPressed,
double? width,
double? padding,
double? fontSize,
IconData? leftIcon,
IconData? rightIcon,
double? radius,
bool? isLoading = false,
Widget? child,
}) => NxButton(
onPressed: onPressed,
width: width,
padding: padding,
fontSize: fontSize,
leftIcon: leftIcon,
rightIcon: rightIcon,
defaultButtonColor: NxColor.primary,
iconColor: Colors.white,
radius: radius,
isLoading: isLoading ?? false,
child: child,
);