UiFlatButton.outlined constructor

UiFlatButton.outlined({
  1. required String label,
  2. Widget? icon,
  3. required VoidCallback? onPressed,
  4. bool isLoading = false,
  5. bool expand = true,
  6. EdgeInsets? padding,
  7. double borderRadius = 8,
  8. double elevation = 0,
  9. Color borderColor = const Color(0xFFCBD5E1),
  10. Color textColor = Colors.black87,
  11. TextStyle? labelStyle,
})

Factory for outlined style

Implementation

factory UiFlatButton.outlined({
  required String label,
  Widget? icon,
  required VoidCallback? onPressed,
  bool isLoading = false,
  bool expand = true,
  EdgeInsets? padding,
  double borderRadius = 8,
  double elevation = 0,
  Color borderColor = const Color(0xFFCBD5E1),
  Color textColor = Colors.black87,
  TextStyle? labelStyle,
}) {
  return UiFlatButton(
    label: label,
    icon: icon,
    onPressed: onPressed,
    isLoading: isLoading,
    expand: expand,
    padding: padding,
    borderRadius: borderRadius,
    elevation: elevation,
    backgroundColor: Colors.transparent,
    textColor: textColor,
    borderColor: borderColor,
    labelStyle: labelStyle,
  );
}