CustomActionButton.elevated constructor
CustomActionButton.elevated({
- 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? disabledForegroundColor,
- Color? disabledBorderColor,
- Color? borderColor,
- double elevation = 2.0,
- double borderRadius = 8.0,
- BorderSide? side,
- OutlinedBorder? shape,
- double? width,
- double? height,
- double minHeight = 60.0,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Gradient? backgroundGradient,
- Gradient? disabledBackgroundGradient,
- InteractiveInkFeatureFactory? splashFactory,
- MaterialTapTargetSize? tapTargetSize,
Creates an elevated button.
Implementation
factory CustomActionButton.elevated({
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? disabledForegroundColor,
Color? disabledBorderColor,
Color? borderColor,
double elevation = 2.0,
double borderRadius = 8.0,
BorderSide? side,
OutlinedBorder? shape,
double? width,
double? height,
double minHeight = 60.0,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
Gradient? backgroundGradient,
Gradient? disabledBackgroundGradient,
InteractiveInkFeatureFactory? splashFactory,
MaterialTapTargetSize? tapTargetSize,
}) {
return CustomActionButton(
key: key,
buttonType: ButtonType.elevated,
onPressed: onPressed,
foregroundColor: foregroundColor,
backgroundColor: backgroundColor,
shadowColor: shadowColor,
splashColor: splashColor,
disabledBackgroundColor: disabledBackgroundColor,
disabledBorderColor: disabledBorderColor,
disabledForegroundColor: disabledForegroundColor,
borderColor: borderColor,
elevation: elevation,
borderRadius: borderRadius,
shape: shape,
width: width,
height: height,
minHeight: minHeight,
padding: padding,
margin: margin,
splashFactory: splashFactory,
backgroundGradient: backgroundGradient,
disabledBackgroundGradient: disabledBackgroundGradient,
icon: icon,
iconSpacing: iconSpacing,
tapTargetSize: tapTargetSize,
child: child,
);
}