Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter Get.Storage() not changing data while using Get.back() #116

Open
saminBee opened this issue Oct 13, 2022 · 2 comments
Open

Flutter Get.Storage() not changing data while using Get.back() #116

saminBee opened this issue Oct 13, 2022 · 2 comments

Comments

@saminBee
Copy link

saminBee commented Oct 13, 2022

Get.back() does not change the data. It stores data while I write in GetStorage but only Get.to()/ Get.named() these changes the data of Get.Storage(). While try to Get.back() it is not changing the data. Is there any solution for this?

@allasca
Copy link

allasca commented Jun 30, 2023

after get.back you need to re-read it

@huzeyfetas
Copy link

use await keyword on your navigate code statement. and listen to get.back with payload. and decide to rebuild widget tree or not.
bool? isNeedReBuild = await Get.to(()=>XScreen()); if(isNeedRebuild){ // fetch your data from storage and setstate the widget tree }

Get.Back(result:true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants