AppButton constructor

const AppButton({
  1. Key? key,
  2. required String title,
  3. Color? backgroundColor = Colors.blue,
  4. Color? textColor = Colors.white,
  5. double? fontSize = 16,
  6. FontWeight? fontWeight = FontWeight.bold,
  7. double? height = 50,
  8. double? width,
  9. BorderRadius? borderRadius,
  10. VoidCallback? onTap,
})

Implementation

const AppButton({
  super.key,
  required this.title,
  this.backgroundColor = Colors.blue,
  this.textColor = Colors.white,
  this.fontSize = 16,
  this.fontWeight = FontWeight.bold,
  this.height = 50,
  this.width,
  this.borderRadius, // Removed default value here
  this.onTap,
});