Fixed Flutter secure storage issue for Android

This commit is contained in:
Abdullah Alassaf
2024-06-27 15:20:35 +03:00
parent 4b09259a47
commit f52309a59d
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -275,10 +275,7 @@ class AuthCubit extends Cubit<AuthState> {
getTokenAndValidate() async {
emit(AuthTokenLoading());
const storage = FlutterSecureStorage(
aOptions: AndroidOptions(
encryptedSharedPreferences: true,
));
const storage = FlutterSecureStorage();
final firstLaunch =
await SharedPreferencesHelper.readBoolFromSP(StringsManager.firstLaunch) ?? true;
+1 -1
View File
@@ -4,7 +4,7 @@ description: This is the mobile application project, developed with Flutter for
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: "none" # Remove this line if you wish to publish to pub.dev
version: 1.0.4+6
version: 1.0.5+7
environment:
sdk: ">=3.0.6 <4.0.0"