thanks for this video but I wonder if shared preference is reliable . can I rely on it to know if the user uses the app for the fist time or should I do it with sql
One solution would be to just make a SomeObject.fromMap factory method on your object and a toMap() instance method. Then you could use jsonEncode to make you object into a string you can store in SharedPreferences. And use jsonDecode to convert your JSON string into a map that you can pass to the fromMap function to re-create your object. (Can't remember if the functions where actually called jsonEncode and jsonDecode but you get the idea)
Why do you keep ending your sentences with an inflection? It sounds like you're asking me instead of telling me what to do. That's so weird man. Stop it.
Most chaotic 5 minutes of my life
How can I store user's password in safe inside shared preferences
Simple and to the point. Great video thanks
A very helpful tutorial!
So simple yet so clear. Thanks a lot.
Keep up the good work!
First to comment!
Thanks for the positivity!
Perfect! Thank you!
how to insert flutter list data in php sql ?
Nice video! What VSCode extension are you using to show where the block ends?
Thanks! The extension I use for the block ends is called "Bracket Pair Colorizer 2
"
thanks for this video but I wonder if shared preference is reliable . can I rely on it to know if the user uses the app for the fist time or should I do it with sql
You can totally use shared preferences for that, and I would even recommend it instead of sql for such a thing!
Thank you :)
Is there a way to use this for multiple key-value pairs? For example, if I wanted to store a bunch of review cards that have two sides?
Tack!
is shared preference secure ? can anyone with admin privileges access the key value pair and change it.
Hi! Is there any way to store and object instead of a int or string? Thank you!
One solution would be to just make a SomeObject.fromMap factory method on your object and a toMap() instance method.
Then you could use jsonEncode to make you object into a string you can store in SharedPreferences.
And use jsonDecode to convert your JSON string into a map that you can pass to the fromMap function to re-create your object.
(Can't remember if the functions where actually called jsonEncode and jsonDecode but you get the idea)
What kind of reason to implement this?
Persistent login for instance
I'm not planning on making a function for every key in my shared preferences.... Useless tutorial for me
can you please make videos on paypal and braintree integration
Why do you keep ending your sentences with an inflection? It sounds like you're asking me instead of telling me what to do. That's so weird man. Stop it.
Maybe he speaks more than one language and doesn't realize he is doing this....pretty normal stuff here
Why do people assume English is the ordained everyone's first language.