UiFlatButton constructor
const
UiFlatButton({
- Key? key,
- required String label,
- Widget? icon,
- required VoidCallback? onPressed,
- bool isLoading = false,
- bool expand = true,
- EdgeInsets? padding,
- double borderRadius = 8,
- double elevation = 3,
- Color backgroundColor = const Color(0xFF3B82F6),
- Color textColor = Colors.white,
- TextStyle? labelStyle,
- Color? borderColor,
Implementation
const UiFlatButton({
super.key,
required this.label,
this.icon,
required this.onPressed,
this.isLoading = false,
this.expand = true,
this.padding,
this.borderRadius = 8,
this.elevation = 3,
this.backgroundColor = const Color(0xFF3B82F6),
this.textColor = Colors.white,
this.labelStyle,
Color? borderColor,
}) : borderColor = borderColor ?? backgroundColor;