Justin McCandless d37058bf2b
Test cross import lint (#178693)
This PR adds a lint rule to catch imports between Material, Cupertino,
and Widgets in tests. Spun out of
https://github.com/flutter/flutter/pull/177029 and the [Decoupling Tests
design
doc](https://docs.google.com/document/d/1UHxALQqCbmgjnM1RNV9xE2pK3IGyx-UktGX1D7hYCjs/edit?pli=1&tab=t.0).

For now, Material will be the place to put tests that need to import
both Material and Cupertino. See
https://github.com/flutter/flutter/pull/178693#discussion_r2550510287.

I used https://github.com/flutter/flutter/pull/130523 as a reference to
create this PR.

---------

Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com>
2025-12-30 19:53:30 +00:00
..