FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
98 stars 17 forks source link

"Max characters allowed" cutoff doesn't work in buttons #2854

Open TeferiHero opened 2 weeks ago

TeferiHero commented 2 weeks ago

Has your issue been reported?

Current Behavior

When I set the "max characters allowed" property, it doesn't cut off the text in buttons. It doesn't generate any code.

Expected Behavior

I expect the text in buttons to be cut off when there are more characters than specified.

Steps to Reproduce

  1. Create a string constant (e.g. "LONG TEXT")
  2. Create a page
  3. Add a button, and a text widget
  4. Set the text of a button and the text widget to the constant.
  5. Set the "max characters allowed" property of both widgets to a small number
  6. Enter test mode
  7. See that the text widget has its text shortened, and the button doesn't.

Reproducible from Blank

Bug Report Code (Required)

IT4slc/q24l2m9RE0LruY8dB/GUXNlx9RpE0scsZbw4bB4zqPLJ/Pc/sUFJoTc+jSlNhHFWkjlgepfCNvvzmG/QECziAb7ZH+pNcFz3KZ3q8Sr6tDqqgfHF9GftgIWaj4abQsxNCVdpuLFok7zm6F9mRa3bvCZO/Zwh9f6PHaOI=

Context

I'm trying to cut off too long, generated text in buttons.

Visual documentation

image Screenshot 2024-05-03 193053 annotated Screenshot 2024-05-03 193345

The property adds "maybeHandleOverflow" in the text widget but not the button widget image image

Additional Info

No response

Environment

- FlutterFlow version:  v4.1.46+ released May 2, 2024
- Platform: Web
- Browser name and version: Microsoft Edge Version 124.0.2478.67 (Official build) (64-bit)

General

Relative to the time the changes were made, data was lost within

When following my steps to reproduce, data loss happens

rzambroni commented 2 weeks ago

Hey @TeferiHero, I was able to replicate the issue you are describing.

Will send it to the team so they can take a look.

Thanks for the report!