-
Notifications
You must be signed in to change notification settings - Fork 29.1k
Improvements to SearchDelegate #91982
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
Conversation
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. |
@darrenaustin Can you please review this PR. Use Case:
Why: How I solved it: |
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. |
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.
Thanks for the contribution. Sorry it has taken me so long to look at it.
This looks like a reasonable change. We need to have a test for this to verify that searchFieldStyle
is being used here. You can add a new test or perhaps add an expect cause to the existing 'Custom searchFieldStyle value' test in packages/flutter/test/material/search_test.dart
.
@darrenaustin I have added some test and also rebased the PR. |
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.
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. This is effectively an incompatible change; hopefully it will not inadvertently break anything.
OK so two LGTM from official contributors, Is there anything which is stopping this PR? |
re Google testing being stuck, can you try rebasing your PR with the latest from upstream? The PR is 1000 commits behind master, so it's unable to be tested |
done |
Use
searchFieldStyle
forSearchDelegate
'sTextStyle
as an alternative to regularheadline6
, so that someone can easily change the text style without messing with the app's theme.List which issues are fixed by this PR. You must list at least one issue.
#93861
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.