MorphButton constructor
const
MorphButton({
- Key? key,
- required String label,
- required Future<
bool> onPressed(), - Color? color,
- Color successColor = const Color(0xFF22C55E),
- Color errorColor = const Color(0xFFEF4444),
- double height = 52,
- double minWidth = 180,
- double borderRadius = 28,
- Duration resetDuration = const Duration(seconds: 2),
- TextStyle? textStyle,
- 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,
});