Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text overflow options for dropdown options #3231

Open
torablien opened this issue May 6, 2024 · 0 comments
Open

Text overflow options for dropdown options #3231

torablien opened this issue May 6, 2024 · 0 comments
Labels
enhancement Improvement/Optimization feature request Suggestion/Request for additional feature

Comments

@torablien
Copy link

Please Describe The Problem To Be Solved

The overflow of long text options in a Dropdown render outside the container. I'd like to use ellipsis or clip it. In Flet (0.22), the Option class only supports str-type key and text fields.

(Optional): Suggest A Solution

In Flutter, the TextStyle class has an overflow option. This option would be useful wherever there is text - it would be great if it was included in Flet's TextStyle.

Flet does have the overflow option on the Text control but Dropdown's Option class expects just a string. Another option could be using the Text control in Option, though this could be a potential issue in other controls. Dropdown does have a text_style property so adding the support within TextStyle so that could just work.

@ndonkoHenri ndonkoHenri added enhancement Improvement/Optimization feature request Suggestion/Request for additional feature labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement/Optimization feature request Suggestion/Request for additional feature
Projects
None yet
Development

No branches or pull requests

2 participants