Début refacto en MVVM (Login, drawer OK

This commit is contained in:
2025-03-10 23:40:54 +01:00
parent b6f169e5f7
commit 2b8e7085aa
15 changed files with 509 additions and 330 deletions

View File

@ -21,7 +21,7 @@ class UserProvider extends ChangeNotifier {
_uid = uid;
_firstName = userData['firstName'];
_lastName = userData['lastName'];
_role = userData['role'] ?? 'USER'; // Default role if not provided
_role = userData['role'] ?? 'USER';
if (userData['profilePhotoUrl'] != "") {
_profilePictureUrl = userData['profilePhotoUrl'];
}