SinglePressButton constructor

const SinglePressButton({
  1. Key? key,
  2. required Widget child,
  3. SinglePressButtonType? type = SinglePressButtonType.normal,
  4. Future<void> onPressed()?,
  5. EdgeInsetsGeometry? padding,
  6. EdgeInsetsGeometry? margin,
  7. Color? backgroundColor,
  8. Gradient? backgroundGradient,
  9. Gradient? disabledBackgroundGradient,
  10. Color? disabledBackgroundColor,
  11. Color? foregroundColor,
  12. Color? disabledForegroundColor,
  13. Color? borderColor,
  14. Color? disabledBorderColor,
  15. double borderRadius = 8.0,
  16. TextStyle? textStyle,
  17. double? elevation,
  18. Color? shadowColor,
  19. OutlinedBorder? shape,
  20. bool showLoadingIndicator = false,
  21. Color? loadingIndicatorColor,
  22. double? width,
  23. double? height,
  24. VoidCallback? onStartProcessing,
  25. VoidCallback? onFinishProcessing,
  26. void onError(
    1. Object error
    )?,
})

Implementation

const SinglePressButton({
  super.key,
  required this.child,
  this.type = SinglePressButtonType.normal,
  this.onPressed,
  this.padding,
  this.margin,
  this.backgroundColor,
  this.backgroundGradient,
  this.disabledBackgroundGradient,
  this.disabledBackgroundColor,
  this.foregroundColor,
  this.disabledForegroundColor,
  this.borderColor,
  this.disabledBorderColor,
  this.borderRadius = 8.0,
  this.textStyle,
  this.elevation,
  this.shadowColor,
  this.shape,
  this.showLoadingIndicator = false,
  this.loadingIndicatorColor,
  this.width,
  this.height,
  this.onStartProcessing,
  this.onFinishProcessing,
  this.onError,
});