CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required String text,
  3. VoidCallback? onTap,
  4. Color? backgroundColor,
  5. Color? textColor,
  6. double? height,
  7. double? width,
  8. double? fontSize,
  9. double? borderRadius,
  10. double? elevation,
  11. EdgeInsetsGeometry? padding,
  12. EdgeInsetsGeometry? margin,
})

Implementation

const CustomButton({
  super.key,
  required this.text,
  this.onTap,
  this.backgroundColor,
  this.textColor,
  this.height,
  this.width,
  this.fontSize,
  this.borderRadius,
  this.elevation,
  this.padding,
  this.margin,
});