Closed ynnob closed 1 year ago
Additional Observation: Triggering a rebuild after the Tab-Switch restores the AsyncListView for some reason and it works again.
Seems to be a problem with the way i handle things. I will use a different approch in my listview.builder
Hey @caseycrogers !
Bug When using a
BottomNavigationBar
and switching the tab a second time to a screen that contains yourAssyncListView
the Widget will throw an exception because it tries to listen to the stream again.Important: I use the package Stacked to handle Business Logic and View seperation in a MVVM Pattern. The ViewModels of the TabViews will not get disposed after the were initialized the first time.
This only happens when switching the tab. Rebuilding the UI with setstate does not trigger this. I implemented it like you did in your example code:
Business Logic
View