SinglePressButton.rounded constructor
SinglePressButton.rounded({
- Key? key,
- required Widget child,
- 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
Factory for the rounded version (uses CustomActionButton.rounded)
Implementation
factory SinglePressButton.rounded({
Key? key,
required Widget child,
Future<void> Function()? 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 Function(Object error)? onError,
}) {
return SinglePressButton(
key: key,
type: SinglePressButtonType.rounded,
onPressed: onPressed,
padding: padding,
margin: margin,
backgroundColor: backgroundColor,
backgroundGradient: backgroundGradient,
disabledBackgroundGradient: disabledBackgroundGradient,
disabledBackgroundColor: disabledBackgroundColor,
foregroundColor: foregroundColor,
disabledForegroundColor: disabledForegroundColor,
borderColor: borderColor,
disabledBorderColor: disabledBorderColor,
borderRadius: borderRadius,
textStyle: textStyle,
elevation: elevation,
shadowColor: shadowColor,
shape: shape,
showLoadingIndicator: showLoadingIndicator,
loadingIndicatorColor: loadingIndicatorColor,
width: width,
height: height,
onStartProcessing: onStartProcessing,
onFinishProcessing: onFinishProcessing,
onError: onError,
child: child,
);
}