Repository navigation
fix: answer scroll_to on the Cupertino ReorderableListView - #15
Merged
Merged
Conversation
The Cupertino renderer never wrapped its list in ScrollableControl, so a Ruby scroll_to on iOS/macOS waited for a listener until it timed out and auto_scroll/scroll were ignored. Wrap it like the Material renderer and cover scroll_to for every scrollable control on both designs.
AdamMusa
force-pushed
the
feat/scroll-methods
branch
from
October 28, 2026 04:35
e1ee77f to
3de6e4b
Compare
This was referenced Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Package A / A0 (
scroll-methods). Ruby counterpart: AdamMusa/ruflet#31What
The Ruby PR adds
scroll_toto every scrollable control. The Dartscroll_tohandler already exists inScrollableControl. While testing it on both designs I found that the CupertinoReorderableListViewnever wrapped its list inScrollableControl. So on iOS/macOS:scroll_tofound no invoke listener and failed withTimeoutException: Timeout waiting for invoke method listener.auto_scrollandscrollwere ignored.This PR wraps the Cupertino list exactly like the Material renderer does, using the same
_controller.Ruby usage
Wire
Invoke
scroll_towith argsoffset(negative counts from the end),delta,scroll_key,duration(ms) andcurve. These are unchanged; no new props or events.Material vs Cupertino
ReorderableListis now wrapped inScrollableControl, so it shows aCupertinoScrollbarwhenscrollis set and answersscroll_to/auto_scroll. No Material widget is involved.Tests
New
test/widgets/ruby_scroll_methods_test.dart, run on iOS and Android for ListView, GridView, Column (scroll), Row (scroll) and ReorderableListView. For each it checks:offset→ 120delta→ 150offset: -1→ max extentduration/curvepasses through intermediate offsets and ends at 0The invoke helper fails fast instead of hanging when no listener answers. Before this fix,
iOS: ReorderableListViewfailed with the listener timeout. 10/10 pass now.verify_pr.sh(Flutter 3.41.2):flutter test+705: All tests passed! (baseline 695 + 10 new)flutter analyze lib test: No issues found!