@@dllizheng Yes it does. But If your storage is broken someway after you saved your data succesfully, there is no chance to save your data back. And obviously no chance to throw an exception.
Flutter dev.. please look into the device default fonts to be used instead of the Flutter default. It is very important. Make the Flutter apps to adapt to the selected default fonts on the device.
This is so true. It often times makes life so much easier too, no need for unnecessary future builders for reading simple values from the disk. Wish I knew this before!
For unknown reason, on some iPhone, the shared preference doesn't work We tried on two same model of iPhone with the same OS version, but on one it works like a charm but not on the other one
@@Abdullah-vp2tl Yeah, there's no way of doing it, I looked at all packages. And then I realised a PWA works on web, mobile, and desktop, so I gave up on Flutter and went back to advanced web dev.
No they meant "persisted", because preferences may also be stored in temporary memory, for instance if a user uses the incognito mode in their browser.
bro I am not willing to take 17,000 hours and 23 tb of storage just to install flutter, I wanted to do this at first now I am uninterested... please make easier to install
This is the first plugin i looked for when i started learning flutter
Your previous development experience should be android development.
+1
@@muhammadahmadkhan5046 that's also true 🥳
Why do i see this just now after 3 months of programming haha
I didn’t know there’s no guaranteed write with shared_preferences. Good to know. Thx!
well, it is up to the condition of the storage of your device.
@@HarveyJoness what does that mean?
@@dllizheng If your storage is full or not working properly for any reason it's not guaranteed to save your data as it is told in the video.
@@HarveyJoness Doesn't it return an error or throw some exception when saving?
@@dllizheng Yes it does. But If your storage is broken someway after you saved your data succesfully, there is no chance to save your data back. And obviously no chance to throw an exception.
Flutter dev.. please look into the device default fonts to be used instead of the Flutter default. It is very important. Make the Flutter apps to adapt to the selected default fonts on the device.
flutter is already implemented this by default
@@keidev7717 no it doesn't work. The app uses default font of flutter instead of the device selected fonts
whats the problem with that .. u will use your custom fonts anyway
Love you Flutter❤️❤️❤️
get_storage is another cool persistent storage widget
Hive > sqflite > shared_preferences
Alternative to this hive!
This a package of decade))
also a good package, but get_storage package is more convenient, only I use it now because I don’t need to use async
This is so true. It often times makes life so much easier too, no need for unnecessary future builders for reading simple values from the disk. Wish I knew this before!
Do not use getx-based packages, they are bad
I'm getting.init() error in get storage. I'm thinking to revert back to the shared preferences.
This is a legend🔥
Auth tokens ? Is it a bad practice to save user token to shared pteferences ?
It would be better IMO to use flutter_secure_storage for this usecase.
@@desther thnk you very much. i will look into it
If Flutter uses local storage for the web to store shared_preferences, then it could be a problem
@@raglandasir6885 hi i use flutter for mobile only. but flutter_secure_storage looks more useful
For unknown reason, on some iPhone, the shared preference doesn't work
We tried on two same model of iPhone with the same OS version, but on one it works like a charm but not on the other one
Is there something to save files in the local storage? Like songs in music directory on Android. Or just saving in Download dir.
Hello Michael, we'd recommend checking out the following guide for the shared_preferences Package of the Week: goo.gle/3yWIowo
Great!
Nice!
Deja Vu? I thought this package was mentioned long ago?
So how do we store data across devices in local storage, where we *can* rely on it being written to disk?
You can use dart:io library but it doesn't support web applications
@@Abdullah-vp2tl Yeah, there's no way of doing it, I looked at all packages. And then I realised a PWA works on web, mobile, and desktop, so I gave up on Flutter and went back to advanced web dev.
not DataStore in Android???
Is shared preferences secured?🔐
anyone using Hive instead of shared_preference?
Most would prefer hive over shared_preferences
can anyone help how to set MODE_PRIVATE in sharedPreferences
If this is not reliable then what to use for critical info storage?
sqflite and other persistent storage methods.
Already using.
We don't care.
1:46 I think they mean encryption not persistent.
So never ever try to save widgets state with this package
No they meant "persisted", because preferences may also be stored in temporary memory, for instance if a user uses the incognito mode in their browser.
First like and firs comment. Google wait for me. I'm coming as a developer from Asia
we are all waiting for you)
You got this, Feruz! Happy Developing 🥳🙌
hive for me
Hive it's better
Get storage for me 😆
😍
Yo Yo, she talks so fast! I'm gonna have to download the video and slow it down
But shared preferences deprecated.
this is too theoritical we need more code more examples. at least I need
Wow
Flutter is a carbon copy of Qt.
skip this... and go hive....
Isar ftw !
(By the same dev)
If you make channel with Arabic language plz
Auto-translate is now available on all channels. Click on settings, subtitles and auto-translate to pick the language you would like ✨
bro I am not willing to take 17,000 hours and 23 tb of storage just to install flutter, I wanted to do this at first now I am uninterested... please make easier to install