Improvements to SearchDelegate - #91982
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. |
darrenaustin
left a comment
There was a problem hiding this comment.
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. |
HansMuller
left a comment
There was a problem hiding this comment.
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
searchFieldStyleforSearchDelegate'sTextStyleas 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.