-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Fix bug in Autocomplete example #127219
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 bug in Autocomplete example #127219
Conversation
QuncCccccc
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.
Nice test:) LGTM!
| mainAxisAlignment: MainAxisAlignment.center, | ||
| children: <Widget>[ | ||
| Text('Type below to autocomplete the following possible results: ${_FakeAPI._kOptions}.'), | ||
| SizedBox(height: 32.0), |
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.
Seems the linux_analyze complains a missing const here:)
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.
Whoops, thanks for pointing it out.
flutter/flutter@ab57304...3437189 2023-05-22 [email protected] Roll Flutter Engine from f0f3fe729a91 to e04c14786d5a (10 revisions) (flutter/flutter#127325) 2023-05-22 [email protected] Fix bug in Autocomplete example (flutter/flutter#127219) 2023-05-22 [email protected] Roll Packages from 1e214d7 to 83959fb (9 revisions) (flutter/flutter#127322) 2023-05-22 [email protected] Roll Flutter Engine from aac09195688d to f0f3fe729a91 (16 revisions) (flutter/flutter#127292) 2023-05-22 [email protected] Add myself to AUTHORS (flutter/flutter#127298) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
This example was incorrectly throwing away results from a query when multiple queries were pending at once. Thanks to @sun-jiao in flutter#127019 (comment) for pointing this out. I also added a quick `Text` widget explaining what to do to use the examples. Since there are only three small possible `options`, it's easy to type into the field and not get any results and wonder what's wrong.
This example was incorrectly throwing away results from a query when multiple queries were pending at once. Thanks to @sun-jiao in #127019 (comment) for pointing this out.
I also added a quick
Textwidget explaining what to do to use the examples. Since there are only three small possibleoptions, it's easy to type into the field and not get any results and wonder what's wrong.