You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature request] Support for ReorderableListView #158
ListViewObserver works with ReorderableListView. The only case that didn't work was when prototypeItem is set, which has been fixed in 1.27.2 via #159.
If you are not using prototypeItem, please check the following:
Pass the same ScrollController to both ListObserverController and ReorderableListView. Note that the parameter of ReorderableListView is named scrollController rather than controller, otherwise jumpTo / animateTo will do nothing.
If the list is not built in the first frame (e.g. it is shown after loading data), call observerController.reattach() after the list is displayed.
Items may be moved after reordering, so jump to the current index of the target item, e.g. observerController.jumpTo(index: items.indexOf(targetItem)).
Oh okay. Thank you for the quick answer.
I have found another package for my solution, but I will try this again too and then decide which one to use.
I will report back at a later time. Thank you :D
Sep 13, 2026 18:28:37 LinXunFeng ***@***.***>:
Activity
LinXunFeng commentedon Sep 13, 2026
Hi @dreamAviator, thanks for the report!
ListViewObserverworks withReorderableListView. The only case that didn't work was whenprototypeItemis set, which has been fixed in 1.27.2 via #159.If you are not using
prototypeItem, please check the following:ScrollControllerto bothListObserverControllerandReorderableListView. Note that the parameter ofReorderableListViewis namedscrollControllerrather thancontroller, otherwisejumpTo/animateTowill do nothing.If the list is not built in the first frame (e.g. it is shown after loading data), call
observerController.reattach()after the list is displayed.Items may be moved after reordering, so jump to the current index of the target item, e.g.
observerController.jumpTo(index: items.indexOf(targetItem)).There is also a new example: reorderable_listview_demo_page.dart.
If it still doesn't work for you, could you share a minimal reproducible example?
dreamAviator commentedon Sep 13, 2026
dreamAviator commentedon Sep 13, 2026
Okay, it works with the reorderableListview
idk what I did wrong before, but thank you for your answer.