Skip to content

chore: Add more scroll-to-zoom examples and a widget-level scroll test - #4008

Merged
luanpotter merged 2 commits into
mainfrom
luan.scroll-anew
Aug 16, 2026
Merged

chore: Add more scroll-to-zoom examples and a widget-level scroll test#4008
luanpotter merged 2 commits into
mainfrom
luan.scroll-anew

Conversation

@luanpotter

Copy link
Copy Markdown
Member

Description

Add more scroll-to-zoom examples and a widget-level scroll test; no src changes.

fixed_resolution_example and static_components_example both used to declare the legacy ScrollDetector without ever overriding onScroll; I removed it on the previous cleanup but I think the intent was valid, so I am adding a zoom-on-scroll behaviour that was never there other than in spirit.

Also adds a widget-level scroll test missing for the callbacks; the legacy path had one but the exact shape was never added to the new system.

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

final game = _ScrollCallbacksGame();
await tester.pumpWidget(GameWidget(game: game));
await tester.pump();
await tester.pump();

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apparently basically all tests do this nonsense, so just replicating. can investigate further later

@luanpotter
luanpotter marked this pull request as ready for review August 16, 2026 15:25
@luanpotter
luanpotter requested a review from spydon August 16, 2026 15:25
@luanpotter
luanpotter enabled auto-merge (squash) August 16, 2026 15:39
@luanpotter
luanpotter merged commit 163da51 into main Aug 16, 2026
8 checks passed
@luanpotter
luanpotter deleted the luan.scroll-anew branch August 16, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants