Repository navigation
Broken text field with set hint and min and max lines #153183
Description
Activity
- addedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Aug 12, 2024 Thanks for your report and submitting a PR, @simon-the-shark!
I can reproduce this issue as well. I also see there is an issue #52008 that looks similar to this. Can you take a look and confirm if it's a similar underlying case?
- addedwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
on Aug 12, 2024 Yeah. This issue seems to be very similar. Probably the same root cause, but the config that brings this out is a bit different. But yeah, probably variation of the same root issue.
- removedwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
on Aug 12, 2024 Thanks. I will keep this as a separate issue for tracking. If your PR can fix #52008, you may want to link to it on your PR as well.
Reproduced on
Channel master, 3.24.0-1.0.pre.559.- addeda: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onteam-text-inputOwned by Text Input teamOwned by Text Input teamfound in release: 3.24Found to occur in 3.24Found to occur in 3.24and removedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Aug 13, 2024 This is not my PR though :)
Oops, sorry. I should tag @zeqinjie
- addedP2Important issues not at the top of the work listImportant issues not at the top of the work listtriaged-text-inputTriaged by Text Input teamTriaged by Text Input team
on Aug 15, 2024 - added a commit that references this issue
on Sep 26, 2024 - addedr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
on Sep 27, 2024 This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Oct 11, 2024 - added a commit that references this issue
on Jun 12, 2026
Steps to reproduce
TextFieldwith long hint, minLines = 1, maxLines=4 (example values)Expected results
I except the field to have as many lines as the short text needs, not the hint (when it's not visible)
Actual results
when we have long hint and it needs more lines, even though we typed some short text and the hint is not visible, the text fields still have as many lines as the hint needs
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
Nagranie.z.ekranu.2024-08-9.o.19.23.56.mov
Logs
Logs
https://pastebin.com/EuCj4Cvk
Flutter Doctor output
Doctor output