From 7ea2d37528da61ff40a50da5843397d51fc0e789 Mon Sep 17 00:00:00 2001 From: Ludwig Schwiedrzik Date: Wed, 14 Aug 2024 11:50:33 +0200 Subject: 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 Signed-off-by: Ludwig Schwiedrzik --- lib/core/constants/users_path.dart | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lib/core/constants/users_path.dart (limited to 'lib/core/constants') 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'; +} -- cgit