Skip to content

Remove Material import from scrollable semantics test#186623

Closed
MarlonJD wants to merge 6 commits into
flutter:masterfrom
MarlonJD:remove-material-import-177412
Closed

Remove Material import from scrollable semantics test#186623
MarlonJD wants to merge 6 commits into
flutter:masterfrom
MarlonJD:remove-material-import-177412

Conversation

@MarlonJD

Copy link
Copy Markdown
Contributor

Part of #177412

Summary

Removes the unnecessary package:flutter/material.dart import from
scrollable_semantics_test.dart.

The two pinned app bar showOnScreen scenarios now use a generic
SliverPersistentHeader instead of SliverAppBar / FlexibleSpaceBar, so the
test can depend on package:flutter/widgets.dart rather than Material.

Tests

  • ./bin/flutter test packages/flutter/test/widgets/scrollable_semantics_test.dart
  • ./bin/flutter analyze --no-pub packages/flutter/test/widgets/scrollable_semantics_test.dart

@google-cla

google-cla Bot commented May 16, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) f: scrolling Viewports, list views, slivers, etc. labels May 16, 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 refactors scrollable_semantics_test.dart by replacing SliverAppBar with a custom SliverPersistentHeader and removing Localizations widgets from the test setup. Review feedback suggests adjusting the minExtent of the new header delegate to maintain consistency with the original test behavior and adding documentation comments to the _PinnedHeaderDelegate class as per the style guide.

Comment thread packages/flutter/test/widgets/scrollable_semantics_test.dart Outdated
Comment thread packages/flutter/test/widgets/scrollable_semantics_test.dart
@MarlonJD

Copy link
Copy Markdown
Contributor Author

Addressed the review feedback on this PR and re-verified locally: dart analyze packages/flutter/test/widgets/scrollable_semantics_test.dart and ./bin/flutter test packages/flutter/test/widgets/scrollable_semantics_test.dart passed. Ready for human review when someone has bandwidth.

@chunhtai

Copy link
Copy Markdown
Contributor

looks like there is another pr opened already #186611. I am going to close this one. Thank you for contribution

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

Labels

a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) 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