-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Fix TextField height issues #27205
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
Fix TextField height issues #27205
Conversation
|
Your solution is perfect and solves a lot of open issues. One of my doubt is to close or not my PR. And if you need any kind of help, I'm open to work with you in your repo. Thank you for your attention! |
|
This would be great, thanks! |
|
This proposal looks like it fixes all my Text Field layout issues, thanks. |
|
Thanks for the feedback! I'll move forward with this. @TulioH I'm going to see if I can rebase this PR off of your PR. That way I'll get a good starting point for the |
60eb45c to
ed78bc7
Compare
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
|
Alright @TulioH I was able to bring in your commits. I renamed If that sounds good to you, let me know (see the CLA bot comment above) and I'll close your old PR. |
|
For me it's ok! Thanks again! |
|
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) |
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
c41c2d3 to
6ba4dc4
Compare
fb1c04b to
7305839
Compare
…th flake is reproducible 50% of the time on my machine.
HansMuller
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
#80133 Still dont understand how to stop the textfield from scrolling vertically when min and max and the user goes over that range |
NOT work for password field. If turn on key obscureText: true |
|
Can you file a new issue if this isn't working for you? Mention me on it and I'd be happy to take a look. |

There have been several issues where people were unable to accomplish certain simple TextField behaviors without complicated workarounds. This PR is a work in progress attempt at coming up with a minimal API addition that will satisfy these needs for TextField.
Goals:
maxLinesbehavior. We will not make any non-backwards-compatible changes.maxLines. The textfield would similarly shrink as text is deleted.Proposal
In addition to
maxLines, add two new parameters that affect height:int minLinesbool expandsminLinesallows the developer to specify a minimum to start from as the content causes the input to grow.expandstells the input that it can size itself based on its parent if wrapped in anExpandedorFlex.Examples
maxLines: null.Reference: Behavior Matrix
Current Behavior
Proposed Behavior