If you have been on Facebook, Messenger, Twitter, or telegram, once you open a chat and it loads for the first time it takes some time, close that chat and open it sometime later, it won't load it will open from where you left it as if that page was held in a memory space for use the next time. How can you achieve this in Flutter (and firebase). This even happens when you close the app. Open it on a later date, you'll find it how you left it (on the home page though).
Tried building the state with automaticKeepAliveClient Mixin but that only works for a page that will not be popped, like a navbar page. Also tried pageStorage
, how ironic they only store scroll positions, not the whole page.
What I'm expecting is that when I open a chat with John and a bunch of messages load, it shouldn't load again next time, and when I close the app, pages I've already loaded like the home page should be where I left them, the last session. This would improve the UX of the app 10x.