Skip to content

Migrate widget_test's Color.withOpacity to Color.withValues#127

Closed
b-luk wants to merge 1 commit intofzyzcjy:masterfrom
b-luk:withOpacity
Closed

Migrate widget_test's Color.withOpacity to Color.withValues#127
b-luk wants to merge 1 commit intofzyzcjy:masterfrom
b-luk:withOpacity

Conversation

@b-luk
Copy link

@b-luk b-luk commented Jan 20, 2026

flutter/flutter#181093 makes dart fix change Color.withOpacity to Color.withValues in this test.

The dart fixed code fails some screenshot tests, because Color.withValues results in a slightly different color than Color.withOpacity.

This PR forward-fixes the tests to use Color.withValues and updates the goldens to be the new Color.withValues images. This way the tests won't be affected/broken when flutter/flutter#181093 is merged.

@b-luk
Copy link
Author

b-luk commented Jan 20, 2026

This breaks the current CI because the CI runs with the Flutter 3.10.0 SDK.

Flutter's customer testing requires using the main channel Flutter SDK. I am disabling the customer test with flutter/tests#479. It can be re-enabled when this CI is updated and the tests pass on the main channel Flutter SDK.

@b-luk b-luk closed this Jan 20, 2026
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.

1 participant