Skip to content

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

Open
@TeferiHero

Description

@TeferiHero

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

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

  • The steps to reproduce above start from a blank project.

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

  • I was collaborating with other users in the same project prior to data loss
  • I navigated between different project views leading up to data loss
  • The UI was running very slowly prior to data loss
  • A crash or other bug occurred prior to data loss
  • Data was not saved in a snapshot
  • I was using flutterflow from multiple devices
  • I was using flutterflow from multiple platforms (e.g. both web and MacOS Desktop app)

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

  • 1 minute
  • 1 hour
  • 1 day
  • 1 week

When following my steps to reproduce, data loss happens

  • ~100% of the time
  • ~50% of the time
  • ~10% of the time
  • ~1% of the time
  • Very rarely or only encountered once

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions