AwesomeButton constructor

const AwesomeButton({
  1. Key? key,
  2. required String label,
  3. VoidCallback? tap,
  4. Color backgroundColor = const Color(0xFF9875D1),
  5. Color textColor = Colors.white,
  6. 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);