CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required String text,
  3. VoidCallback? onPressed,
  4. bool isLoading = false,
  5. bool isOutlined = false,
  6. IconData? icon,
  7. Color? backgroundColor,
  8. Color? textColor,
  9. double? width,
  10. double height = 50,
  11. double borderRadius = 12,
})

Implementation

const CustomButton({
  super.key,
  required this.text,
  this.onPressed,
  this.isLoading = false,
  this.isOutlined = false,
  this.icon,
  this.backgroundColor,
  this.textColor,
  this.width,
  this.height = 50,
  this.borderRadius = 12,
});