Skip to content

Commit

Permalink
change: minor changes to improve backward compatibility of FlutterSec…
Browse files Browse the repository at this point in the history
…ureStorage on Windows
  • Loading branch information
w568w committed Nov 26, 2024
1 parent 25a5443 commit c7fdaf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/util/shared_preferences.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class XSharedPreferences {
final FlutterSecureStorage _keyStore;
late final EncryptedSharedPreferences _preferences;

XSharedPreferences._() : _keyStore = const FlutterSecureStorage();
XSharedPreferences._() : _keyStore = const FlutterSecureStorage(
wOptions: WindowsOptions(useBackwardCompatibility: true),
);

static XSharedPreferences? _instance;

Expand Down

0 comments on commit c7fdaf8

Please sign in to comment.