NxButton constructor

const NxButton({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. double? width,
  4. double? padding,
  5. double? fontSize,
  6. NxColor? defaultButtonColor,
  7. Color? color = Colors.white,
  8. Color? borderColor = Colors.white,
  9. Color? iconColor = Colors.black54,
  10. Color? textColor = Colors.black54,
  11. IconData? leftIcon,
  12. IconData? rightIcon,
  13. double? elevation = 0,
  14. double? radius,
  15. bool isLoading = false,
  16. 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);