UiFlatButton constructor

const UiFlatButton({
  1. Key? key,
  2. required String label,
  3. Widget? icon,
  4. required VoidCallback? onPressed,
  5. bool isLoading = false,
  6. bool expand = true,
  7. EdgeInsets? padding,
  8. double borderRadius = 8,
  9. double elevation = 3,
  10. Color backgroundColor = const Color(0xFF3B82F6),
  11. Color textColor = Colors.white,
  12. TextStyle? labelStyle,
  13. 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;