这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix autocomplete options height #80187

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

Merged
merged 28 commits into from
May 20, 2021
Merged

Fix autocomplete options height #80187

merged 28 commits into from
May 20, 2021

Conversation

maheshj01
Copy link
Member

@maheshj01 maheshj01 commented Apr 10, 2021

This pull request fixes the Autocomplete Widget's options height issue #79227 and adds a maxOptionsHeight property allowing user to configure the maximum height the optionsViewBuilder can take.

Fixes #79227

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Apr 10, 2021
@google-cla google-cla bot added the cla: yes label Apr 10, 2021
@maheshj01
Copy link
Member Author

@justinmc let me know your thoughts on this PR would be happy to make the changes :)
Also, I couldn't understand from the logs why the flutter-build failed.

@maheshj01
Copy link
Member Author

@shihaohong can you please review this PR

Copy link
Contributor

@shihaohong shihaohong left a comment

Choose a reason for hiding this comment

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

This PR would need tests to verify that the updated, intended behaviors are reflected.

@maheshj01
Copy link
Member Author

This PR would need tests to verify that the updated, intended behaviors are reflected.

Thanks, I will add the tests to support this PR

@maheshj01
Copy link
Member Author

@shihaohong I am not sure if I have to write tests in widgets/autocomplete_test.dart as well

Copy link
Member

@pedromassango pedromassango left a comment

Choose a reason for hiding this comment

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

@maheshmnj It looks like there is some unrelated changes caused by your IDE/code editor, that is causing the analyzer test to fail, you have to revert those changes, it is basicaly remove empty spaces (custom formats) added by your IDE/code editor.

@maheshj01 maheshj01 requested a review from pedromassango April 19, 2021 16:55
Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

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

The tests are failing due to an improperly formatted test (see my comment).

For flutter_build, you don't have to worry about it. It represents the status of the current Flutter build (without this PR). We only allow PRs to be merged when it is green. If it's red, someone is working on it, and you can just wait for it to turn green.

Copy link
Contributor

@shihaohong shihaohong left a comment

Choose a reason for hiding this comment

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

Some comments about the test file's formatting and the test setup and clarity.

@maheshj01 maheshj01 requested a review from shihaohong April 29, 2021 12:53
@shihaohong
Copy link
Contributor

The analyzer check is also failing:

Warning: transitive closure contained non-allowlisted packages:
[frontend_server_client]
See dev/bots/allowlist.dart for instructions on how to update the package allowlist.

It might be unrelated to your change, so maybe rebase your branch with the master branch and see if it resolved the error failure.

@maheshj01
Copy link
Member Author

Thank you so much for the detailed review @shihaohong

@maheshj01 maheshj01 requested a review from shihaohong May 4, 2021 16:35
@maheshj01
Copy link
Member Author

maheshj01 commented May 5, 2021

@shihaohong I am not exactly sure why the Windows build_tests are failing looks like they are timing out.
I have formatted the code Please review.

@maheshj01 maheshj01 requested a review from shihaohong May 5, 2021 04:57
Copy link
Contributor

@shihaohong shihaohong left a comment

Choose a reason for hiding this comment

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

LGTM

@shihaohong
Copy link
Contributor

The windows tests seem to be unrelated to your change and is an infra failure (I think the related issue is #81837). We'll have to wait for it to be resolved before we can merge this PR

@maheshj01
Copy link
Member Author

The windows tests seem to be unrelated to your change and is an infra failure (I think the related issue is #81837). We'll have to wait for it to be resolved before we can merge this PR

sure thanks again for the review

Copy link
Member

@pedromassango pedromassango left a comment

Choose a reason for hiding this comment

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

LGTM

@maheshj01
Copy link
Member Author

@shihaohong looks like #81837 is resolved. do I need to merge the latest master? In order for windowsbuild_tests_2_3 to pass

@pedromassango
Copy link
Member

@maheshmnj I think so

@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Windows build_tests_2_3 has failed. Please fix the issues identified (or deflake) before re-applying this label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

Autocomplete options widget
5 participants