AwesomeButton constructor
const
AwesomeButton({
- Key? key,
- required String label,
- VoidCallback? tap,
- Color backgroundColor = const Color(0xFF9875D1),
- Color textColor = Colors.white,
- BorderRadiusGeometry borderRadius = BorderRadius.zero,
Implementation
const AwesomeButton({
Key? key,
required this.label, // ✅ FIXED: This must be named and marked required
this.tap,
this.backgroundColor = const Color(0xFF9875D1), // ✅ Use const
this.textColor = Colors.white,
this.borderRadius = BorderRadius.zero, // ✅ Simpler default
}) : super(key: key);