SFutureButton constructor

const SFutureButton({
  1. Key? key,
  2. Future<bool?> onTap()?,
  3. String? label,
  4. TextStyle? labelStyle,
  5. Widget? icon,
  6. double? height,
  7. double? width,
  8. bool isEnabled = true,
  9. bool isElevatedButton = true,
  10. bool showErrorMessage = true,
  11. Color? bgColor,
  12. Color? iconColor,
  13. Color? successColor,
  14. Color? errorColor,
  15. IconData successIcon = Icons.check,
  16. IconData errorIcon = Icons.close,
  17. double? borderRadius,
  18. ValueChanged<String>? onPostError,
  19. VoidCallback? onPostSuccess,
  20. FocusNode? focusNode,
  21. void onFocusChange(
    1. bool
    )?,
  22. String? semanticsLabel,
  23. double? loadingCircleSize,
  24. Duration? successDuration,
  25. Duration? errorDuration,
  26. Widget? loadingWidget,
})

Implementation

const SFutureButton({
  super.key,
  this.onTap,
  this.label,
  this.labelStyle,
  this.icon,
  this.height,
  this.width,
  this.isEnabled = true,
  this.isElevatedButton = true,
  this.showErrorMessage = true,
  this.bgColor,
  this.iconColor,
  this.successColor,
  this.errorColor,
  this.successIcon = Icons.check,
  this.errorIcon = Icons.close,
  this.borderRadius,
  this.onPostError,
  this.onPostSuccess,
  this.focusNode,
  this.onFocusChange,
  this.semanticsLabel,
  this.loadingCircleSize,
  this.successDuration,
  this.errorDuration,
  this.loadingWidget,
});