flutter_secure_storage
flutter_secure_storage copied to clipboard
Null check operator used on a null value
I have used the beta version of the package flutter_secure_storage_web: ^2.0.0-beta.1 and it works fine on localhost but when i host it on a locale network and try to access it through the ip address it shows this error:
Null check operator used on a null value
I just used write method to save the value:
Future<void> setToken(String value) async {
const storage = FlutterSecureStorage();
await storage.write(key: 'token', value: value);
}
same to me.
flutter_secure_storage: ^9.2.2
⚠️ This issue has been marked as stale because it has been open for 60 days with no activity.
If this issue is still relevant, please comment to keep it active. Otherwise, it will be closed in 60 days.
❌ This issue has been closed because it remained inactive for 60 days after being marked as stale.
Got the same issue. It works OK on Chrome and Firefox in Windows PC, but I got the error while using Chrome in an Android phone. In the same phone, when using Firefox, this issue does not happen but it also doesn't save anything.
Upon further research, I found @this. That was my problem, and running my app with HTTPS did solve the issue. I noticed that this information is present in the github page, but it is not present in the pub.dev package page. I'd suggest adding that info in the pub.dev page, as I think many people will look there for information (as I did).
⚠️ This issue has been marked as stale because it has been open for 60 days with no activity.
If this issue is still relevant, please comment to keep it active. Otherwise, it will be closed in 60 days.
❌ This issue has been closed because it remained inactive for 60 days after being marked as stale.