Skip to content

Remove Material import from sliver tree rendering test#187000

Merged
auto-submit[bot] merged 3 commits into
flutter:masterfrom
MarlonJD:sliver-tree-no-material
May 29, 2026
Merged

Remove Material import from sliver tree rendering test#187000
auto-submit[bot] merged 3 commits into
flutter:masterfrom
MarlonJD:sliver-tree-no-material

Conversation

@MarlonJD

@MarlonJD MarlonJD commented May 23, 2026

Copy link
Copy Markdown
Contributor

Removes the Material import from the sliver tree rendering test by replacing the MaterialApp wrapper with lower-layer test scaffolding that preserves the fallback text metrics. Also removes the test from the rendering cross-import allowlist.

Part of #177412
Refs #177028

Tests:

  • bin/cache/dart-sdk/bin/dart --enable-asserts dev/bots/check_tests_cross_imports.dart
  • bin/cache/dart-sdk/bin/dart analyze packages/flutter/test/rendering/sliver_tree_test.dart dev/bots/check_tests_cross_imports.dart
  • ./bin/flutter analyze --no-pub packages/flutter/test/rendering/sliver_tree_test.dart dev/bots/check_tests_cross_imports.dart
  • ./bin/flutter test --no-pub packages/flutter/test/rendering/sliver_tree_test.dart
  • git diff --check

@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. f: scrolling Viewports, list views, slivers, etc. labels May 23, 2026

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

Copy link
Copy Markdown
Contributor

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 removes the dependency on the Material library in sliver_tree_test.dart by introducing a local _buildTestWidget helper and updating imports to use specific symbols. Review feedback suggests further simplifying imports by consolidating symbols from the widgets library and adding documentation comments to private members as required by the style guide.

Comment thread packages/flutter/test/rendering/sliver_tree_test.dart Outdated
Comment thread packages/flutter/test/rendering/sliver_tree_test.dart Outdated
Comment thread packages/flutter/test/rendering/sliver_tree_test.dart
@MarlonJD MarlonJD force-pushed the sliver-tree-no-material branch from b5b2f20 to ec25498 Compare May 23, 2026 10:53
@MarlonJD

MarlonJD commented May 23, 2026

Copy link
Copy Markdown
Contributor Author

Addressed the review comments and resolved the threads. Could a maintainer please add the CICD label when you have a moment? Thanks!

Comment thread packages/flutter/test/rendering/sliver_tree_test.dart Outdated
Comment thread packages/flutter/test/rendering/sliver_tree_test.dart Outdated
Comment thread packages/flutter/test/rendering/sliver_tree_test.dart Outdated
@MarlonJD

Copy link
Copy Markdown
Contributor Author

Addressed the review feedback in MarlonJD/flutter@e48bd9e866a:

  • Removed the verbose show import lists.
  • Inlined the fallback TextStyle inside _buildTestWidget().
  • Used the suggested fallback style values/debug label.

Re-ran ./bin/flutter analyze --no-pub packages/flutter/test/rendering/sliver_tree_test.dart dev/bots/check_tests_cross_imports.dart and ./bin/flutter test --no-pub packages/flutter/test/rendering/sliver_tree_test.dart.

@navaronbracke navaronbracke added the CICD Run CI/CD label May 24, 2026
@Piinks Piinks requested a review from victorsanni May 26, 2026 22:12
@MarlonJD

Copy link
Copy Markdown
Contributor Author

This is approved, and the only current status failure appears to be the global tree-status. Could you please add autosubmit when you get a chance?

@github-actions github-actions Bot removed the CICD Run CI/CD label May 27, 2026
@victorsanni victorsanni added the CICD Run CI/CD label May 29, 2026
@victorsanni victorsanni added the autosubmit Merge PR when tree becomes green via auto submit App label May 29, 2026
@auto-submit auto-submit Bot added this pull request to the merge queue May 29, 2026
Merged via the queue into flutter:master with commit cf1389d May 29, 2026
173 of 174 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 29, 2026
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request May 29, 2026
flutter/flutter@e70534d...b05a9d7

2026-05-29 [email protected] Roll Skia from 47155534833e to d9d6b440c4e7 (1 revision) (flutter/flutter#187301)
2026-05-29 [email protected] Roll Skia from f93ed13d77fb to 47155534833e (4 revisions) (flutter/flutter#187291)
2026-05-29 [email protected] [web_ui] Optimize skwasm text layout and path decoding to eliminate dynamic boxing churn under Wasm (flutter/flutter#186978)
2026-05-29 [email protected] Roll Fuchsia Linux SDK from SBpmmPxqx3lAvGojE... to jMR_VXQi07kAk8vbR... (flutter/flutter#187279)
2026-05-29 [email protected] Remove Material import from sliver tree rendering test (flutter/flutter#187000)
2026-05-29 [email protected] [Impeller] Remove the y_coord_scale Y-flip plumbing (flutter/flutter#187224)
2026-05-29 [email protected] Add/remove overlay child RenderObject from the tree in `attach`/`detach` (flutter/flutter#186564)
2026-05-29 [email protected] Roll Skia from fcfe5975c945 to f93ed13d77fb (4 revisions) (flutter/flutter#187273)
2026-05-28 [email protected] Handle complex RSE rendering in the uber SDF pipeline (flutter/flutter#186434)
2026-05-28 [email protected] Roll Dart SDK from 082191101fcc to 683322426411 (2 revisions) (flutter/flutter#187270)
2026-05-28 [email protected] Clarify route transition animations (flutter/flutter#186552)
2026-05-28 [email protected] document that the default Key is null and explain proper usage in list diffing (flutter/flutter#185197)
2026-05-28 [email protected] [flutter_tools] Use super parameters in missed spots (flutter/flutter#186197)
2026-05-28 [email protected] docs: Document MediaQueryData.alwaysUse24HourFormat on macOS, Windows, Linux, web (#160664) (flutter/flutter#186642)
2026-05-28 [email protected] Roll Skia from 5493e4c144cd to fcfe5975c945 (3 revisions) (flutter/flutter#187256)
2026-05-28 [email protected] Shares opengles golden context (flutter/flutter#187243)
2026-05-28 [email protected] Update the Curl CIPD package in .ci.yaml to version 8.20.0 (flutter/flutter#187133)
2026-05-28 [email protected] Improve SizedBox's docs (flutter/flutter#187208)
2026-05-28 [email protected] [Impeller] Support instanced rendering across all backends (flutter/flutter#186653)
2026-05-28 [email protected] [Android] Reset system UI visibility flags when setting edge-to-edge mode (flutter/flutter#187207)
2026-05-28 [email protected] Roll Skia from a38708fb7926 to 5493e4c144cd (7 revisions) (flutter/flutter#187241)
2026-05-28 [email protected] Turned on impeller by default on macos (flutter/flutter#186546)
2026-05-28 [email protected] Clarify lazy scroll extent docs (flutter/flutter#186864)
2026-05-28 [email protected] [web] Fix WebParagraph locales test (flutter/flutter#186813)
2026-05-28 [email protected] Roll Packages from 4b424d7 to 10cbdc5 (3 revisions) (flutter/flutter#187238)
2026-05-28 [email protected] Roll Dart SDK from f3db7b7d9801 to 082191101fcc (8 revisions) (flutter/flutter#187235)
2026-05-28 [email protected] Roll Skia from 32acea791248 to a38708fb7926 (1 revision) (flutter/flutter#187221)
2026-05-28 [email protected] [Flutter GPU] Add r32Float and remove Apple-only XR pixel formats (flutter/flutter#187069)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants