SinglePressButton constructor
const
SinglePressButton({
- Key? key,
- required Widget child,
- required Future<
void> onPressed(), - EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? color,
- Color? disabledColor,
- double borderRadius = 8.0,
- TextStyle? textStyle,
- double? elevation,
- OutlinedBorder? shape,
- bool showLoadingIndicator = false,
- Color? loadingIndicatorColor,
- VoidCallback? onStartProcessing,
- VoidCallback? onFinishProcessing,
- void onError(
- Object error
Creates a SinglePressButton.
The child
and onPressed
parameters are required.
The borderRadius
defaults to 8.0, and showLoadingIndicator
defaults to false
.
Implementation
const SinglePressButton({
super.key,
required this.child,
required this.onPressed,
this.padding,
this.margin,
this.color,
this.disabledColor,
this.borderRadius = 8.0,
this.textStyle,
this.elevation,
this.shape,
this.showLoadingIndicator = false,
this.loadingIndicatorColor,
this.onStartProcessing,
this.onFinishProcessing,
this.onError,
});