Fix disabled CupertinoTextField style#32974
Conversation
|
@SimonIT Could you fix the merge conflicts and add tests to this PR, so it can be merged? FWIW, verifying the |
|
I never wrote any test for widgets in flutter, so it might take some time |
|
No worries, thank you for taking this on! Writing widget tests should be fairly straightforward. Or if you prefer I can open a new PR on top of c49ed8b and add tests to it. |
|
That would be very nice if you can do it. For a golden test I have no Linux machine running... Do you want access to my fork? So you can push directly.... |
|
Could you update the content of |
|
Anything else that has to be done to get this merged? |
Description
This PR fixes that a disabled CupertinoTextField has a gray container which overlaps the parent container which his rounded corners.
Before:


After:


(Screenshots from Gallery)
Related Issues
no existing issues
Tests
I added the following tests:
Added a golden test. Thanks to @LongCatIsLooong . The golden file is here: https://github.com/LongCatIsLooong/goldens/blob/dee106cde3112f48ddf236c53a9b602c9f288d71/packages/flutter/test/cupertino/text_field_test.disabled.0.png
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?