FilledStacks / responsive_builder

A set of widgets to make responsive UI building in flutter more readable
MIT License
504 stars 81 forks source link

This widget has been unmounted, so the State no longer has a context (and should be considered defunct). #28

Open EricPHassey opened 3 years ago

EricPHassey commented 3 years ago

Getting this error when switching between mobile and desktop. Also using the Stacked viewmodel package. Seems like when I change the layout something else is being removed.

FilledStacks commented 3 years ago

Not something else, the entire widget is removed from the widget tree.

EricPHassey commented 3 years ago

Thanks for the prompt feedback. Any idea how to check for that or what may be occuring? Only does it when it switches from mobile to desktop. So something seems like it's being disposed and no longer having that state/context.

FilledStacks commented 3 years ago

@EricPHassey That is what's happening. The entire widget is being removed from the tree. That's how it works. What you're expecting is happening, is happening but that's by choice. WE don't want bot layouts alive if one is not needed so it's removed from the tree completely.