You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so i have this simple controller, and in onInit box.read('citys') is null, i dont know why, is it a bug, how do i get the value in onInit and assign it to something?
with the getter of my controller, i am able to get the value from storage.
(First time this runs, it should be null, but secondtime it should return the stored value, its there i get it from the getter)
Ok forgot Initialize GetStorage and also getMaterialApp in this Demo .. sry for that... that was the Problem in the Demo, but i didn't forget it in my acutal App, and there it doesnt work with it initialized, so there is probably an error somewhere, im lookin into it, perharps i can find the error or reproduce it somehow.
Sorry for that in the demo, and thank you for the repsonse
so i have this simple controller, and in onInit box.read('citys') is null, i dont know why, is it a bug, how do i get the value in onInit and assign it to something?
with the getter of my controller, i am able to get the value from storage.
(First time this runs, it should be null, but secondtime it should return the stored value, its there i get it from the getter)
controller.dart
main.dart
The text was updated successfully, but these errors were encountered: