SFutureButton constructor
const
SFutureButton({
- Key? key,
- Future<
bool?> onTap()?, - String? label,
- Widget? icon,
- double? height,
- double? width,
- bool isEnabled = true,
- bool isElevatedButton = true,
- bool showErrorMessage = true,
- Color? bgColor,
- Color? iconColor,
- double? borderRadius,
- ValueChanged<
String> ? onPostError, - VoidCallback? onPostSuccess,
- FocusNode? focusNode,
- void onFocusChange()?,
- 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,
});