SFutureButton constructor

const SFutureButton({
  1. Key? key,
  2. Future<bool?> onTap()?,
  3. String? label,
  4. Widget? icon,
  5. double? height,
  6. double? width,
  7. bool isEnabled = true,
  8. bool isElevatedButton = true,
  9. bool showErrorMessage = true,
  10. Color? bgColor,
  11. Color? iconColor,
  12. double? borderRadius,
  13. ValueChanged<String>? onPostError,
  14. VoidCallback? onPostSuccess,
  15. FocusNode? focusNode,
  16. void onFocusChange(
    1. bool
    )?,
  17. double? loadingCircleSize,
})

Implementation

const SFutureButton({
  super.key,
  this.onTap,
  this.label,
  this.icon,
  this.height,
  this.width,
  this.isEnabled = true,
  this.isElevatedButton = true,
  this.showErrorMessage = true,
  this.bgColor,
  this.iconColor,
  this.borderRadius,
  this.onPostError,
  this.onPostSuccess,
  this.focusNode,
  this.onFocusChange,
  this.loadingCircleSize,
});