flet icon indicating copy to clipboard operation
flet copied to clipboard

feature:Enhancement: Upgrade TextField height property to support auto-expansion in multi-line mode

Open Qye-Leisure opened this issue 9 months ago • 0 comments

Duplicate Check

  • [x] I have searched the opened issues and there are no duplicates

Describe the requested feature

Body: I would like to suggest an upgrade to the TextField component’s height property.

Current Behavior: When the height property is set on a TextField, it does not automatically expand in multi-line mode based on the max_lines setting.

Suggest a solution

Proposed Solution: I suggest one of the following approaches:

Add a min_height property to the TextField. Alternatively, modify the behavior of the height property so that it acts as a fixed height in single-line mode, but serves as a minimum height in multi-line mode. Note: Regarding the maximum height, this can be easily constrained by wrapping the TextField in an external Container component.

Screenshots

No response

Additional details

No response

Qye-Leisure avatar Feb 08 '26 02:02 Qye-Leisure