mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +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:
parent
298ee24a9c
commit
6d4973deb8
51 changed files with 816 additions and 592 deletions
|
|
@ -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,
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue