CustomActionButton.flat constructor
CustomActionButton.flat({
- required void onPressed()?,
- required Widget child,
- Color? backgroundColor,
- Color? splashColor,
- Color? borderColor,
- double borderRadius = 10.0,
- InteractiveInkFeatureFactory? splashFactory,
- double? width,
- double? height,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
Implementation
factory CustomActionButton.flat({
required void Function()? onPressed,
required Widget child,
Color? backgroundColor,
Color? splashColor,
Color? borderColor,
double borderRadius = 10.0,
InteractiveInkFeatureFactory? splashFactory,
double? width,
double? height,
EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
}) {
return CustomActionButton(
onPressed: onPressed,
backgroundColor: backgroundColor ?? Colors.transparent,
splashFactory: splashFactory ?? InkRipple.splashFactory,
splashColor: splashColor ?? Colors.grey.withOpacity(0.2),
borderColor: borderColor ?? Colors.transparent,
borderRadius: borderRadius,
width: width,
height: height,
margin: margin,
padding: padding,
child: child,
);
}