Skip to content

Conversation

@justinmc
Copy link
Contributor

See #27205

Attempting to get that PR in again after it was reverted due to breaking internal tests after the roll.

tuliomagalhaes and others added 30 commits January 23, 2019 08:17
@justinmc justinmc added cla: yes and removed cla: no labels Mar 12, 2019
@googlebot
Copy link

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.)

ℹ️ Googlers: Go here for more info.

@justinmc
Copy link
Contributor Author

See #27205 for confirming CLA.

@justinmc
Copy link
Contributor Author

The bug that was causing the image comparison tests to fail was that my new layout algorithm was adding a subtext gap below the subtext when the old one wasn't. My fix is to remove that extra subtext gap.

So originally and after my fix, the parent container ends immediately after any subtext with no spacing (see screenshot below). I think this is best because there is also no spacing when there is no subtext at all. Any desired spacing will be up to the user.

flutter_05

The same thing with spacing after the subtext looked like this. This is no longer the behavior with my fix.

flutter_06

@googlebot
Copy link

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 cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@justinmc justinmc force-pushed the text-field-height branch from a3654f6 to 955e384 Compare March 12, 2019 21:36
@goderbauer goderbauer added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. f: cupertino flutter/packages/flutter/cupertino repository labels Mar 12, 2019
@justinmc
Copy link
Contributor Author

Another bug for other image comparison tests was related to errorText positioning. My new layout algorithm ignored it if it was an empty string, but for legacy reasons needed to support it. The bug ended up causing an input that wasn't as tall as it used to be and slightly out of place:

DIFF_display_pin_3

I also didn't lay it out when I should have in a few other cases, which was fixed with the above.

@justinmc justinmc requested a review from HansMuller March 13, 2019 23:01
@justinmc justinmc changed the title WIP Text field height attempt 2 Text field height attempt 2 Mar 14, 2019
@justinmc justinmc added cla: yes and removed cla: no labels Mar 14, 2019
@googlebot
Copy link

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.)

ℹ️ Googlers: Go here for more info.

@justinmc
Copy link
Contributor Author

@HansMuller This is ready for review. You've already reviewed this PR when it went in the first time, but now I've added five new commits, starting with f276609. The new things that I've done are:

  1. Fixed and tested a subtext bug explained in a comment above, exposed by adwords mobile app tests.
  2. Fixed and tested an errorText bug explained in another comment above, also exposed by adwords mobile app tests.
  3. Added minlines and expands to TextFormField and CupertinoTextField, just because I noticed that I forgot to do so in the original PR.

Copy link
Contributor

@HansMuller HansMuller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new changes LGTM, please take this PR in for a landing!

@justinmc justinmc merged commit 6d8f539 into flutter:master Mar 15, 2019
@justinmc justinmc deleted the text-field-height branch March 15, 2019 01:01
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants