Hi, I’ve created a file with some global variable inside :
library globals; bool isLoggedIn = false; int userId = 0;
I’m changing those variables during the app runtime (if the user is logging… well you know).
But the variable state aren’t keept inside the app when the app is closing.
Is this a good way to save session ? I don’t have to use Firebase for the login, only save a user id in the app (so that I can do some REST API call only thanks to the savec id).