mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-15 11:45:31 +00:00
Updated dependencies (#255)
* Bump android compile and target version, also flutter dependencies and resolve issues * Remove deprecated splashscreen and added support for new Android 12 version. * Updated workflow action versions and flutter sdk * Resolved linting issues * Resolved test binding issues
This commit is contained in:
@ -103,7 +103,7 @@ class UserProfileDBManager {
|
||||
debug("Adding new profile: '${profile.name}'");
|
||||
}
|
||||
|
||||
int key = await store.add(await _db, profile.toJson()) as int;
|
||||
int? key = await store.add(await _db, profile.toJson()) as int?;
|
||||
|
||||
// Record the key
|
||||
profile.key = key;
|
||||
@ -156,8 +156,8 @@ class UserProfileDBManager {
|
||||
|
||||
if (profiles[idx].key is int && profiles[idx].key == selected) {
|
||||
return UserProfile.fromJson(
|
||||
profiles[idx].key as int,
|
||||
profiles[idx].value as Map<String, dynamic>,
|
||||
profiles[idx].key! as int,
|
||||
profiles[idx].value! as Map<String, dynamic>,
|
||||
profiles[idx].key == selected,
|
||||
);
|
||||
}
|
||||
@ -182,8 +182,8 @@ class UserProfileDBManager {
|
||||
if (profiles[idx].key is int) {
|
||||
profileList.add(
|
||||
UserProfile.fromJson(
|
||||
profiles[idx].key as int,
|
||||
profiles[idx].value as Map<String, dynamic>,
|
||||
profiles[idx].key! as int,
|
||||
profiles[idx].value! as Map<String, dynamic>,
|
||||
profiles[idx].key == selected,
|
||||
)
|
||||
);
|
||||
|
Reference in New Issue
Block a user