CustomActionButton.minimal constructor
CustomActionButton.minimal({
- Key? key,
- required VoidCallback? onPressed,
- required Widget child,
- Widget? icon,
- double iconSpacing = 8.0,
- Color? borderColor,
- Color? foregroundColor,
- Color? disabledBorderColor,
- Color? disabledForegroundColor,
- Color? shadowColor,
- double? width,
- double? height,
- double minHeight = 60.0,
- OutlinedBorder? shape,
- EdgeInsetsGeometry? padding,
- Gradient? disabledBackgroundGradient,
- EdgeInsetsGeometry? margin,
- MaterialTapTargetSize? tapTargetSize,
Creates a minimal button.
Implementation
factory CustomActionButton.minimal({
Key? key,
required VoidCallback? onPressed,
required Widget child,
Widget? icon,
double iconSpacing = 8.0,
Color? borderColor,
Color? foregroundColor,
Color? disabledBorderColor,
Color? disabledForegroundColor,
Color? shadowColor,
double? width,
double? height,
double minHeight = 60.0,
OutlinedBorder? shape,
EdgeInsetsGeometry? padding,
Gradient? disabledBackgroundGradient,
EdgeInsetsGeometry? margin,
MaterialTapTargetSize? tapTargetSize,
}) {
return CustomActionButton(
key: key,
buttonType: ButtonType.minimal,
onPressed: onPressed,
foregroundColor: foregroundColor,
disabledBorderColor: disabledBorderColor,
disabledForegroundColor: disabledForegroundColor,
borderColor: borderColor,
shadowColor: shadowColor,
width: width,
height: height,
minHeight: minHeight,
shape: shape,
padding: padding,
margin: margin,
disabledBackgroundGradient: disabledBackgroundGradient,
icon: icon,
iconSpacing: iconSpacing,
tapTargetSize: tapTargetSize,
child: child,
);
}