jakky1 / jk_fast_listview

ListView / GridView for Flutter. Support fast scrolling among a large amount of data, flexible widget size, index-based scrolling, item recycler.
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Issues: Null exception ll Scroll reset || Rendering #1

Open chaudharydeepanshu opened 4 days ago

chaudharydeepanshu commented 4 days ago

Thanks for providing a solution and contributing to the community. I tried using your jk_fast_listview package, and while the scrolling performance was impressively fast, I faced few issues:

  1. It threw a null exception at line 526 in the following code:
void recycleInfo(_ChildInfo info) {
  assert(_isAlive);
  assert(!info.isSeparator);
  if (info._element!.widget.key == null) {
    //info._deactivate();
    _tmpBucket.add(info);
  } else {
    info._doDestroy();
  }
}
  1. When resetting the scroll position using a ScrollController, it wouldn't fully return to the top. I used the following code:
void _scrollToTop() {
  scrollController.animateTo(
    0,
    duration: const Duration(milliseconds: 500),
    curve: Curves.easeOut,
  );
}
  1. Some items appeared as black boxes and only rendered correctly after interaction.

If you're still working on this package, I can share a repro. to help fix it. Thanks!

jakky1 commented 4 days ago

I would appreciate it if you could provide me with the simple sample code, and detailed steps to duplicate these issues.

However, I haven't maintained this package for a long time, so there is no guarantee whether these problems can be solved... :(