CustomButton constructor

CustomButton({
  1. Key? key,
  2. required String text,
  3. required VoidCallback onPressed,
  4. bool isOutlined = false,
  5. double height = 40,
  6. double? width,
  7. Widget? prefixIcon,
  8. Widget? suffixIcon,
  9. double iconGap = 8.0,
  10. Color? textColor,
  11. Color? iconColor,
  12. bool? isLoading,
})

Implementation

CustomButton({
  super.key,
  required this.text,
  required this.onPressed,
  this.isOutlined = false,
  this.height = 40,
  this.width,
  this.prefixIcon,
  this.suffixIcon,
  this.iconGap = 8.0,
  this.textColor,
  this.iconColor,
  this.isLoading,
});