Closed wibowoCodeId closed 3 months ago
@wibowoCodeId Please provide minimal reproducable code.
@wibowoCodeId Please provide minimal reproducable code.
Here the code i using this secure storage to secure the hive key.
Future<List<int>> hiveKeys() async {
const FlutterSecureStorage ss = FlutterSecureStorage();
const AndroidOptions aOptions = AndroidOptions(
encryptedSharedPreferences: true,
);
const IOSOptions iOptions = IOSOptions(
accessibility: KeychainAccessibility.first_unlock,
);
String? stringKey = await ss.read(
key: 'boxKey',
aOptions: aOptions,
iOptions: iOptions,
);
late List<int> hiveKey;
if (stringKey != null) {
hiveKey = stringKey.codeUnits;
} else {
hiveKey = Hive.generateSecureKey();
final Uint8List bytes = Uint8List.fromList(hiveKey);
stringKey = String.fromCharCodes(bytes);
await ss.write(
key: 'boxKey',
value: stringKey,
aOptions: aOptions,
iOptions: iOptions,
);
}
return hiveKey;
}
Same issue
some issue
Is there a solution to the problem?
just delete the folder "/C:/Users/fauzi/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_secure_storage_windows-3.0.0"
and it will work.
Is there a solution to the problem?
just delete the folder "/C:/Users/fauzi/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_secure_storage_windows-3.0.0"
and it will work.
if you put the dependencies_override : win32 , remove it , it is the solution
if you put the dependencies_override : win32 , remove it , it is the solution
in my case i have win32 under the dependencies_override, but i have just upgraded it to : win32: ^5.0.0, and it worked for me.
I am closing all older issues. If this issue still exists in the latest version, please let me know.
Same issue with the latest version:
../../../.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.1.2/lib/src/flutter_secure_storage_windows_ffi.dart:260:45: Error: The argument type 'Pointer
FAILURE: Build failed with an exception.
Working solution it the one mentioned in comments above: Add this high level key directly inside dependency overrides (No need to put package name etc):
dependency_overrides:
win32: ^5.0.0 # This overrides the version globally for all packages for windows
I got an error when i just using mobile for flutter_secure_storage_windows.
Here the error
I just using this for Mobile Version. And this i got when running the mobile version