CustomElevatedButton constructor
const
CustomElevatedButton({
- Key? key,
- Function? onPressed,
- String? text,
- Color? backgroundColor,
- Color? textColor,
- Color? overlayColor,
- Widget? child,
- Widget? leftIcon,
- Widget? rightIcon,
- bool disabled = false,
- TextStyle? textStyle,
- EdgeInsets? margin,
- EdgeInsets? padding,
- double? height,
- double? width,
- double? elevation,
- int? flex,
- BorderRadius? borderRadius,
- BorderSide? border,
- TextAlign? textAlign,
- VisualDensity? visualDensity,
- ButtonStyle? buttonStyle,
Implementation
const CustomElevatedButton({
Key? key,
this.onPressed,
this.text,
this.backgroundColor,
this.textColor,
this.overlayColor,
this.child,
this.leftIcon,
this.rightIcon,
this.disabled = false,
this.textStyle,
this.margin,
this.padding,
this.height,
this.width,
this.elevation,
this.flex,
this.borderRadius,
this.border,
this.textAlign/* = TextAlign.start */,
this.visualDensity,
this.buttonStyle,
}) : super(key: key);