Closed berneberne closed 2 years ago
As you wanted to use SharedPreference
for flutter I would recommend you to use this instead
https://pub.dev/packages/flutter_secure_storage
It works exactly like encrypted SharedPreference
.
Agreed. I would not use this library it's not maintained as Google's EncryptedSharedPreferences from androidx.security should be preferred.
I am practicing a email authentication in flutter and almost everything is over. Now, i want to use sharedPreference to stay the user logged in. I have tried something, but i don't get result. I am using a bool type to get whether user loggedIn or not. But i am very new to this, can you help me in this? and is there anything i am missing out?
This is the sharedPreference static Class i am using
This is the signIn button triggering the setBool: SignInButton:
The main function