diff options
author | 2024-08-14 11:50:33 +0200 | |
---|---|---|
committer | 2024-09-12 16:58:42 +0000 | |
commit | 7ea2d37528da61ff40a50da5843397d51fc0e789 (patch) | |
tree | de3b9dcafda931aa3d0297c60bc2586c89e03782 /lib/core/constants | |
parent | a2dcd701777968a65d3176eaf28aa7023d97c16b (diff) |
Integration of Storage API to flutter - Users, Units
Updated user and units notifiers to make use of persistent storage. New
users are stored with a name and id in the default namespace, and their
unit preferences (distance, temperature, tire pressure) are stored in
namespaces corresponding to each user's id.
Added new initialize_settings to load user and unit settings from
storage on startup. For first-time startup, default users with ids have
been added to storage as well.
Added unit tests for new user and unit handling.
Bug-AGL: [SPEC-5228]
Change-Id: I9cbcfc3ea5045dcb27db1b05e332f89abfc284a1
Signed-off-by: Tom Kronsbein <tom.kronsbein@d-fine.com>
Signed-off-by: Ludwig Schwiedrzik <ludwig.schwiedrzik@d-fine.com>
Diffstat (limited to 'lib/core/constants')
-rw-r--r-- | lib/core/constants/users_path.dart | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/core/constants/users_path.dart b/lib/core/constants/users_path.dart new file mode 100644 index 0000000..47c2486 --- /dev/null +++ b/lib/core/constants/users_path.dart @@ -0,0 +1,6 @@ +class UsersPath { + static const String InfotainmentCurrentUser = + 'Infotainment.Users.selectedUser'; + static const String InfotainmentUsers = + 'Infotainment.Users'; +} |