SimpleButton constructor

const SimpleButton({
  1. Key? key,
  2. String? text,
  3. IconData? icon,
  4. Widget? leadingWidget,
  5. Widget? trailingWidget,
  6. bool isOutlined = false,
  7. double borderRadius = 16,
  8. Color? borderColor,
  9. Color? buttonColor,
  10. Color? backgroundColor,
  11. Gradient? gradient,
  12. Color? disabledBackgroundColor,
  13. bool showLoading = false,
  14. double? width = double.infinity,
  15. Color? textColor,
  16. void onPressed()?,
  17. double height = 54,
  18. Color? loadingColor,
  19. bool isEnabled = true,
  20. double iconSize = 24,
})

Implementation

const SimpleButton({
  super.key,
  this.text,
  this.icon,
  this.leadingWidget,
  this.trailingWidget,
  this.isOutlined = false,
  this.borderRadius = 16,
  this.borderColor,
  this.buttonColor,
  this.backgroundColor,
  this.gradient,
  this.disabledBackgroundColor,
  this.showLoading = false,
  this.width = double.infinity,
  this.textColor,
  this.onPressed,
  this.height = 54,
  this.loadingColor,
  this.isEnabled = true,
  this.iconSize = 24,
});