Skip to content

Conversation

@navaronbracke
Copy link
Contributor

This PR removes Material imports from run_app_test.dart / run_app_async_test.dart

Part of #177415

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@github-actions github-actions bot added the framework flutter/packages/flutter repository. See also f: labels. label Jan 25, 2026
Copy link
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 refactors run_app_test.dart and run_app_async_test.dart to remove dependencies on the Material library. It replaces Material-specific widgets like MaterialApp, Material, and ElevatedButton with core widgets such as SizedBox and GestureDetector. Following this refactoring, the two test files are removed from the knownWidgetsCrossImports allowlist in dev/bots/check_tests_cross_imports.dart. The changes are straightforward and I have no further comments.

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

Labels

framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant