Skip to content

Remove Material import from obscured_animated_image_test#184783

Closed
xfce0 wants to merge 1 commit intoflutter:masterfrom
xfce0:fix-remove-material-from-obscured-animated-image-test
Closed

Remove Material import from obscured_animated_image_test#184783
xfce0 wants to merge 1 commit intoflutter:masterfrom
xfce0:fix-remove-material-from-obscured-animated-image-test

Conversation

@xfce0
Copy link
Copy Markdown
Contributor

@xfce0 xfce0 commented Apr 8, 2026

Part of #177412.

Replaces MaterialApp with TestWidgetsApp, removing the unnecessary dependency on package:flutter/material.dart from a widgets-layer test. Also removes the file from the knownWidgetsCrossImports allowlist in dev/bots/check_tests_cross_imports.dart.

Pre-launch Checklist

  Part of flutter#177412.

  Replaces MaterialApp with TestWidgetsApp, removing the unnecessary
  dependency on package:flutter/material.dart.
  Also removes the file from the knownWidgetsCrossImports allowlist.
@github-actions github-actions bot added the framework flutter/packages/flutter repository. See also f: labels. label Apr 8, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the test suite by removing 'packages/flutter/test/widgets/obscured_animated_image_test.dart' from the cross-import checker list. Additionally, it modifies 'packages/flutter/test/widgets/obscured_animated_image_test.dart' to replace 'MaterialApp' with 'TestWidgetsApp' and updates the imports accordingly. I have no feedback to provide as there are no review comments.

@Piinks Piinks requested a review from justinmc April 14, 2026 22:16
@Piinks Piinks added the CICD Run CI/CD label Apr 14, 2026
@justinmc
Copy link
Copy Markdown
Contributor

I think this one is already covered by #181774, which is listed on this issue: #177415

So we should probably close this. But let me know if I'm missing anything @xfce0, and sorry for the confusion!

@navaronbracke
Copy link
Copy Markdown
Contributor

Yes it seems so: https://github.com/flutter/flutter/blob/master/packages/flutter/test/widgets/obscured_animated_image_test.dart

I'm going to close this PR then.

@xfce0 Feel free to work on other tests, though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants