MorphButton constructor

const MorphButton({
  1. Key? key,
  2. required String label,
  3. required Future<bool> onPressed(),
  4. Color? color,
  5. Color successColor = const Color(0xFF22C55E),
  6. Color errorColor = const Color(0xFFEF4444),
  7. double height = 52,
  8. double minWidth = 180,
  9. double borderRadius = 28,
  10. Duration resetDuration = const Duration(seconds: 2),
  11. TextStyle? textStyle,
  12. IconData? icon,
})

Implementation

const MorphButton({
  super.key,
  required this.label,
  required this.onPressed,
  this.color,
  this.successColor = const Color(0xFF22C55E),
  this.errorColor = const Color(0xFFEF4444),
  this.height = 52,
  this.minWidth = 180,
  this.borderRadius = 28,
  this.resetDuration = const Duration(seconds: 2),
  this.textStyle,
  this.icon,
});