Skip to content
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

Refactors search to have private _SearchField and _AutoCompleteSearchField widgets #3442

Merged
merged 6 commits into from Oct 12, 2021

Conversation

elliette
Copy link
Member

@elliette elliette commented Oct 8, 2021

  • The buildSearchField method now returns a private _SearchField widget
  • The buildAutoCompleteSearchField methods now returns a private _AutoCompleteSearchField widget
  • As part of the refactor, I noticed that we were checking in buildSearchField to see if the controller was the AutoCompleteSearchControllerMixin, and then doing special autocomplete logic. I've moved all of that logic to where we build the autocomplete instead.

Comment on lines 702 to 703
String newValue,
int caretPosition,
Copy link
Member

Choose a reason for hiding this comment

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

should these be required?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah good catch! Marked them as required, thanks!

@elliette elliette merged commit 4a3d79c into flutter:master Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants