NxButton constructor

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