rvamsikrishna / inview_notifier_list

A Flutter package that builds a list view and notifies when the widgets are on screen.
MIT License
677 stars 104 forks source link

fix #42: disposed widgets were not removed from contexts of InViewState #45

Closed SteepSheep closed 2 years ago

SteepSheep commented 2 years ago

Builders that use generating Widgets automatically dispose widgets when not visible. This leads to the contexts having widgets that currently are not part of the render tree. To prevent this the widgets should be stateful and remove themselves when they are disposed

inc16sec commented 2 years ago

I can confirm that this solution is working just fine. Thank you @SteepSheep for your amazing work.

rvamsikrishna commented 2 years ago

Thank you @SteepSheep for the PR👏🙌