getx
getx copied to clipboard
Add support for State Restoration in getx
Hi @jonataslaw, I've just added the support of restorationScopeId
in App widgets. Nothing fancy, just passing property value to CupertinoApp
or MaterialApp
.
Setting a restorationScopeId
is an important step in Flutter to implement a State Restoration mechanism (like restore the navigation history stack even after the app is killed by the OS). So I think it's something that getx should support too.
EDIT
After some tests with the first changes, the restoration works but the user had to write some extra code which getx can manage to do for him... So, I plan to add on this PR a kind of near-full support for state restoration in getx. Any comments/discussion about it is appreciated 🙂
Interesting additions @na2axl, thanks for the PR. @jonataslaw would you mind give it a try ?
Hey @roipeker, thanks. If needed I can build an example app to showcase the feature. Currently I'm using it in my app (a chat application) to allow users to directly open the discussion they have left when they have closed the app, even after the OS have killed the app, and everything is working fine 🙂
Really great PR. What worries me at the moment is just that we are moving to Navigator 2.0. So to avoid conflict, I will merge this PR when the migration is done. Thank you for that
when will this restoration state be released?
Required for my project
is there any progress with this PR?
What's the status of this PR?
@na2axl im interested in your PR, do you know if it will work with navigator2 and getx5 ?
Hello, please what's the status of this PR?