CommonButton constructor

const CommonButton({
  1. Key? key,
  2. required String text,
  3. VoidCallback? onPressed,
  4. CommonButtonType type = CommonButtonType.elevated,
  5. bool isLoading = false,
  6. bool isFullWidth = true,
  7. IconData? icon,
  8. double? height,
  9. double? borderRadius,
  10. Color? backgroundColor,
  11. Color? textColor,
})

Implementation

const CommonButton({
  super.key,
  required this.text,
  this.onPressed,
  this.type = CommonButtonType.elevated,
  this.isLoading = false,
  this.isFullWidth = true,
  this.icon,
  this.height,
  this.borderRadius,
  this.backgroundColor,
  this.textColor,
});