Closed liangsmfish closed 2 years ago
Env: Flutter 3.3.6 This is my code:
Widget getContinuousThumbnailItem(WidgetRef ref) { Widget builder = ListView.builder( itemExtent: ctWidth, controller: scrollController, scrollDirection: Axis.horizontal, itemCount: getCTDisplayCount(ref), itemBuilder: (context, i) { return ContinuousThumbnailItem( width: ctWidth, height: ctHeight, index: i, ); }); builder = ListViewObserver( child: builder, onObserve: (resultModel) { print('firstChild.index -- ${resultModel.firstChild?.index}'); print('displaying -- ${resultModel.displayingChildIndexList}'); }, ); return builder; }
It seems that onObserve is not callback
Thanks for your feedback, please update to version 1.6.2
1.6.2
Env: Flutter 3.3.6 This is my code:
It seems that onObserve is not callback