google/flutter.widgets

[ScrollablePositionedList] item at index 0 is not disposed

Opened this issue · 0 comments

yqritc commented

Problem description

package: scrollable_positioned_list 0.3.8
bug: item at index 0 in ScrollablePositionedList is not disposed.

Steps to reproduce

  1. Create simple list with ScrollablePositionedList.builder
  2. Add index log message at dispose() function in item of list
  3. Simply scroll list until log is printed
  4. You can see log from index 1 is printed but index 0 is not printed

Expected behavior

dispose function at index 0 is called

Actual behavior

dispose function at index 0 is not called

Environment

scrollable_positioned_list 0.3.8
android 14.0 (emulator)
ios 16.4 (simulator)

Additional details

none