CustomElevatedButton constructor

const CustomElevatedButton({
  1. Key? key,
  2. Function? onPressed,
  3. String? text,
  4. Color? backgroundColor,
  5. Color? textColor,
  6. Color? overlayColor,
  7. Widget? child,
  8. Widget? leftIcon,
  9. Widget? rightIcon,
  10. bool disabled = false,
  11. TextStyle? textStyle,
  12. EdgeInsets? margin,
  13. EdgeInsets? padding,
  14. double? height,
  15. double? width,
  16. double? elevation,
  17. int? flex,
  18. BorderRadius? borderRadius,
  19. BorderSide? border,
  20. TextAlign? textAlign,
  21. VisualDensity? visualDensity,
  22. 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);