AppButton constructor
const
AppButton({
- Key? key,
- required String title,
- Color? backgroundColor = Colors.blue,
- Color? textColor = Colors.white,
- double? fontSize = 16,
- FontWeight? fontWeight = FontWeight.bold,
- double? height = 50,
- double? width,
- BorderRadius? borderRadius,
- 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,
});