SinglePressButton constructor
const
SinglePressButton({
- Key? key,
- required Widget child,
- SinglePressButtonType? type = SinglePressButtonType.normal,
- Future<
void> onPressed()?, - EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? backgroundColor,
- Gradient? backgroundGradient,
- Gradient? disabledBackgroundGradient,
- Color? disabledBackgroundColor,
- Color? foregroundColor,
- Color? disabledForegroundColor,
- Color? borderColor,
- Color? disabledBorderColor,
- double borderRadius = 8.0,
- TextStyle? textStyle,
- double? elevation,
- Color? shadowColor,
- OutlinedBorder? shape,
- bool showLoadingIndicator = false,
- Color? loadingIndicatorColor,
- double? width,
- double? height,
- VoidCallback? onStartProcessing,
- VoidCallback? onFinishProcessing,
- void onError(
- 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,
});