CustomActionButton.rounded constructor
CustomActionButton.rounded({
- Key? key,
- required VoidCallback? onPressed,
- required Widget child,
- Widget? icon,
- double iconSpacing = 8.0,
- Color? backgroundColor,
- Color? foregroundColor,
- Color? shadowColor,
- Color? splashColor,
- Color? disabledBackgroundColor,
- Color? disabledBorderColor,
- Color? disabledForegroundColor,
- Color? borderColor,
- double? width,
- double? height,
- double minHeight = 60.0,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- double elevation = 2.0,
- Gradient? backgroundGradient,
- Gradient? disabledBackgroundGradient,
- InteractiveInkFeatureFactory? splashFactory,
- MaterialTapTargetSize? tapTargetSize,
Creates a fully rounded button.
Implementation
factory CustomActionButton.rounded({
Key? key,
required VoidCallback? onPressed,
required Widget child,
Widget? icon,
double iconSpacing = 8.0,
Color? backgroundColor,
Color? foregroundColor,
Color? shadowColor,
Color? splashColor,
Color? disabledBackgroundColor,
Color? disabledBorderColor,
Color? disabledForegroundColor,
Color? borderColor,
double? width,
double? height,
double minHeight = 60.0,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
double elevation = 2.0,
Gradient? backgroundGradient,
Gradient? disabledBackgroundGradient,
InteractiveInkFeatureFactory? splashFactory,
MaterialTapTargetSize? tapTargetSize,
}) {
return CustomActionButton(
key: key,
buttonType: ButtonType.rounded,
onPressed: onPressed,
backgroundColor: backgroundColor,
foregroundColor: foregroundColor,
shadowColor: shadowColor,
splashColor: splashColor,
disabledBackgroundColor: disabledBackgroundColor,
disabledBorderColor: disabledBorderColor,
disabledForegroundColor: disabledForegroundColor,
borderColor: borderColor,
elevation: elevation,
width: width,
height: height,
minHeight: minHeight,
padding: padding,
margin: margin,
backgroundGradient: backgroundGradient,
disabledBackgroundGradient: disabledBackgroundGradient,
splashFactory: splashFactory,
icon: icon,
iconSpacing: iconSpacing,
tapTargetSize: tapTargetSize,
child: child,
);
}