CustomActionButton.flat constructor
CustomActionButton.flat({
- required VoidCallback? onPressed,
- required Widget child,
- Color? backgroundColor,
- Color? foregroundColor,
- Color? splashColor,
- Color? disabledBackgroundColor,
- Color? disabledForegroundColor,
- Color? borderColor,
- double borderRadius = 8.0,
- BorderSide? side,
- OutlinedBorder? shape,
- double? width,
- double? height,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- InteractiveInkFeatureFactory? splashFactory,
Creates a flat button.
The onPressed
and child
parameters are required.
Implementation
factory CustomActionButton.flat({
required VoidCallback? onPressed,
required Widget child,
Color? backgroundColor,
Color? foregroundColor,
Color? splashColor,
Color? disabledBackgroundColor,
Color? disabledForegroundColor,
Color? borderColor,
double borderRadius = 8.0,
BorderSide? side,
OutlinedBorder? shape,
double? width,
double? height,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
InteractiveInkFeatureFactory? splashFactory,
}) {
return CustomActionButton(
buttonType: ButtonType.flat,
onPressed: onPressed,
foregroundColor: foregroundColor,
backgroundColor: backgroundColor,
splashColor: splashColor,
disabledBackgroundColor: disabledBackgroundColor,
disabledBorderColor: disabledForegroundColor,
borderColor: borderColor,
borderRadius: borderRadius,
shape: shape,
width: width,
height: height,
padding: padding,
margin: margin,
splashFactory: splashFactory,
child: child,
);
}