UiFlatButton.text constructor

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

Factory for text style

Implementation

factory UiFlatButton.text({
  required String label,
  Widget? icon,
  required VoidCallback? onPressed,
  bool isLoading = false,
  bool expand = false,
  EdgeInsets? padding,
  double borderRadius = 8,
  double elevation = 0,
  Color textColor = Colors.blue,
  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: Colors.transparent,
    labelStyle: labelStyle,
  );
}