Repository navigation
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework teamwaiting for PR to land (fixed)A fix is in flightA fix is in flight
Description
Umbrella issue: #177028
Design doc: https://docs.google.com/document/d/1UHxALQqCbmgjnM1RNV9xE2pK3IGyx-UktGX1D7hYCjs/edit?tab=t.0
Tests should be located in the library whose code they are testing. If a tests needs to test multiple libraries (say, a platform adaptive constructor), then put it in Material. This will help with our general test organization and also help remove a devDependency after Material and Cupertino are decoupled from the framework.
How to fix
- Find a test listed below that is not already fixed (checked) and that does not have a PR already linked.
- Look at the test that references Material/Cupertino and double check whether it would be possible to migrate the test to remove the dependency. I may have made a mistake including it in this issue (maybe it should be in (Test cross-imports) Don't import Material in tests for convenience #177415 instead).
- If I was wrong and the test doesn't need Material/Cupertino, refactor it to remove the dependency instead of moving the test! Otherwise, for any test that is fundamentally is about testing Material/Cupertino, copy it out of its current file and into test/material or test/cupertino.
- Ensure that all such tests have been removed from the file, and then delete the Material/Cupertino import.
- If there are no tests left in the file, delete the file altogether.
- In your PR, reference this issue as "Part of" instead of "Fixes", to avoid it being prematurely closed.
Tests to fix
Located in Widgets, imported Material
- refactor: Remove material imports from editable_text_scribble_test, editable_text_scribe_test, page_route_builder_test, radio_group_test, semantics_debugger_test, range_maintaining_scroll_physics_test, two_dimensional_scroll_view_test, routes_test, text_selection_test, selectable_region_test and text_golden_test #184798
- test/widgets/semantics_debugger_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/routes_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement and Convenience
- refactor: remove material import froma sliver_main_axis_group_test, sliver_semantics_test, semantics_role_checks_test, sliver_fill_remaining_test, tap_region_test #185567
- test/widgets/sliver_main_axis_group_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement and Convenience
- Button
- test/widgets/sliver_appbar_opacity_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Refactor: remove material from autocomplete_test, scrollable_restoration_test, semantics_tester_generate_test_semantics_expression_for_current_semantics_tree_test #184615
- test/widgets/semantics_tester_generate_test_semantics_expression_for_current_semantics_tree_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Could be a bigger refactor could fix it.
- refactor: Remove material imports from editable_text_scribble_test, editable_text_scribe_test, page_route_builder_test, radio_group_test, semantics_debugger_test, range_maintaining_scroll_physics_test, two_dimensional_scroll_view_test, routes_test, text_selection_test, selectable_region_test and text_golden_test #184798
- test/widgets/page_route_builder_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- refactor: remove material import froma sliver_main_axis_group_test, sliver_semantics_test, semantics_role_checks_test, sliver_fill_remaining_test, tap_region_test #185567
- test/widgets/tap_region_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Move heroes_test.dart from widgets to material directory #181266
- test/widgets/heroes_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- http://github.com/flutter/flutter/pull/181613
- test/widgets/decorated_sliver_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/navigator_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/sliver_semantics_test.dart
- Awaiting PR from @navaronbracke
- Located in Widgets, imported Material.
- Category: Misplacement
- Note that there is also sliversemantics_test.dart, also misplaced.
- refactor: Remove material imports from Widget tests #184877, Remove Material import from navigator_on_did_remove_page_test #184776
- test/widgets/navigator_on_did_remove_page_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/editable_text_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Among others problems. Big test
- Remove material imports from navigator_on_did_remove_page_test and scrollable_in_overlay_test #182546
- test/widgets/scrollable_in_overlay_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Refactor autofill_group_test.dart to remove Material dependencies #181903
- test/widgets/autofill_group_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/scrollbar_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Only one test out of many in the file uses Material I think.
- Remove material from scrollable_test.dart #181429
- test/widgets/scrollable_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/text_selection_toolbar_utils.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- refactor: remove material in pop_scope_test, route_notification_message_test, two_dimensional_utils, two_dimensional_viewport_test #182699
- test/widgets/two_dimensional_viewport_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- refactor: remove material import froma sliver_main_axis_group_test, sliver_semantics_test, semantics_role_checks_test, sliver_fill_remaining_test, tap_region_test #185567
- test/widgets/semantics_role_checks_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/routes_transition_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/scrollable_semantics_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Remove material from slivers_appbar_floating_pinned_test.dart + slivers_appbar_stretch_test.dart + sliver_persistent_header_test.dart + slivers_appbar_floating_test.dart #181469
- test/widgets/slivers_appbar_floating_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/scrollable_selection_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Refactor: remove material from autocomplete_test, scrollable_restoration_test, semantics_tester_generate_test_semantics_expression_for_current_semantics_tree_test #184615
- test/widgets/scrollable_restoration_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- refactor: remove material import froma sliver_main_axis_group_test, sliver_semantics_test, semantics_role_checks_test, sliver_fill_remaining_test, tap_region_test #185567
- test/widgets/sliver_fill_remaining_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/nested_scroll_view_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/selectable_text_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Remove material from slivers_appbar_floating_pinned_test.dart + slivers_appbar_stretch_test.dart + sliver_persistent_header_test.dart + slivers_appbar_floating_test.dart #181469
- test/widgets/slivers_appbar_floating_pinned_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- refactor: Remove material imports from editable_text_scribble_test, editable_text_scribe_test, page_route_builder_test, radio_group_test, semantics_debugger_test, range_maintaining_scroll_physics_test, two_dimensional_scroll_view_test, routes_test, text_selection_test, selectable_region_test and text_golden_test #184798
- test/widgets/text_selection_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- refactor: Remove material imports from editable_text_scribble_test, editable_text_scribe_test, page_route_builder_test, radio_group_test, semantics_debugger_test, range_maintaining_scroll_physics_test, two_dimensional_scroll_view_test, routes_test, text_selection_test, selectable_region_test and text_golden_test #184798
- test/widgets/radio_group_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/inherited_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Move SelectionArea web test from widgets to material folder #181951
- test/widgets/html_element_view_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/drawer_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/page_transitions_builder_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Remove Material import from implicit animation tests #186673
- test/widgets/implicit_animations_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Remove Material import from scroll_view_test.dart #181281, Move scroll_view_test.dart from widgets to material directory #181268
- test/widgets/scroll_view_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Remove Material import from navigator replacement tests #186674
- test/widgets/navigator_replacement_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- test/widgets/sliversemantics_test.dart
- Awaiting PR from @navaronbracke
- Located in Widgets, imported Material.
- Category: Misplacement
- Note that there is also sliver_semantics_test.dart, also misplaced.
- test/widgets/form_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Remove material from slivers_appbar_floating_pinned_test.dart + slivers_appbar_stretch_test.dart + sliver_persistent_header_test.dart + slivers_appbar_floating_test.dart #181469
- test/widgets/slivers_appbar_stretch_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- refactor: Remove material imports from Widget tests #185078, Migration: Remove material.dart dependency from framework_test.dart (Issue #177414) #181620
- test/widgets/framework_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
- Refactor: remove material from autocomplete_test, scrollable_restoration_test, semantics_tester_generate_test_semantics_expression_for_current_semantics_tree_test #184615
- test/widgets/autocomplete_test.dart
- Located in Widgets, imported Material.
- Category: Misplacement
Located in Cupertino, imported Material
- [Reland] Cupertino cross imports #182416
- test/cupertino/colors_test.dart
- Located in Cupertino, imported Material.
- Category: Misplacement
- [Reland] Cupertino cross imports #182416
- test/cupertino/picker_test.dart
- Located in Cupertino, imported Material.
- Category: Misplacement
- [Reland] Cupertino cross imports #182416
- test/cupertino/app_test.dart
- Located in Cupertino, imported Material.
- Category: Misplacement
- [Reland] Cupertino cross imports #182416
- test/cupertino/form_row_test.dart
- Located in Cupertino, imported Material.
- Category: Misplacement
- Remove last material dependency from cupertino tests #184781, Remove editable_text_utils cross-imports from material and cupertino … #184519
- test/cupertino/text_selection_test.dart
- Located in Cupertino, imported Material.
- Category: Misplacement
- [Reland] Cupertino cross imports #182416
- test/cupertino/sheet_test.dart
- Located in Cupertino, imported Material.
- Category: Misplacement
- [Reland] Cupertino cross imports #182416
- test/cupertino/date_picker_test.dart
- Located in Cupertino, imported Material.
- Category: Misplacement
Located in Widgets, imported Cupertino
- test/widgets/routes_test.dart
- Located in Widgets, imported Cupertino.
- Category: Misplacement
- test/widgets/text_selection_toolbar_utils.dart
- Located in Widgets, imported Cupertino.
- Category: Misplacement
- Probably move to Cupertino and import from Material when needed for cross platform.
- test/widgets/editable_text_test.dart
- Located in Widgets, imported Cupertino.
- Category: Misplacement
- Quite a lot here.
- test/widgets/selectable_text_test.dart
- Located in Widgets, imported Cupertino.
- Category: Misplacement
- refactor: remove material from widget_inspector_test, sliver_cross_axis_group_test, editable_text_show_on_screen_test, scrollable_fling_test, selection_container_test #182702
- test/widgets/widget_inspector_test.dart
- Located in Widgets, imported Cupertino.
- Category: Misplacement
- test/widgets/heroes_test.dart
- Located in Widgets, imported Cupertino.
- Category: Misplacement
- test/widgets/live_text_utils.dart
- Located in Widgets, imported Cupertino.
- Category: Misplacement
Reacted by Francesco Iapicca
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework teamwaiting for PR to land (fixed)A fix is in flightA fix is in flight
Type
Projects
- StatusShow more project fieldsIn Progress
- StatusShow more project fieldsIn Progress
Activity
justinmc commentedon Jan 2, 2026
These are up for contributions now that #177029 and #178693 have merged, in case anyone wants to help migrate these! Unassigning myself.
46 remaining items
QuncCccccc commentedon Jun 24, 2026
Seems all files in "Located in Cupertino, imported Material" section has removed material imports in 5b1c84c. Should we check these checkboxes?
Move routes_transition_test to material
[material_ui] Port routes_transition_test to material_ui (#12634)
[material_ui] Port routes_transition_test to material_ui (flutter#12634)
[material_ui] Port routes_transition_test to material_ui (flutter#12634)
Move drawer tests from widgets to material (flutter#188486)
flutter-triage-bot commentedon Oct 28, 2026
This issue is marked P1 but has had no recent status updates.
The P1 label indicates high-priority issues that are at the top of the work list. This is the highest priority level a bug can have if it isn't affecting a top-tier customer or breaking the build. Bugs marked P1 are generally actively being worked on unless the assignee is dealing with a P0 bug (or another P1 bug). Issues at this level should be resolved in a matter of months and should have monthly updates on GitHub.
Please consider where this bug really falls in our current priorities, and label it or assign it accordingly. This allows people to have a clearer picture of what work is actually planned. Thanks!
Remove migrated routes transition test from widgets
Remove migrated routes transition test from widgets
Remove routes_transition_test from widgets (flutter#186620)