This commit is contained in:
2025-10-31 12:18:13 +02:00
parent cb25b932ba
commit abd56d5a14
8 changed files with 94 additions and 98 deletions

View File

@@ -49,7 +49,11 @@ class MzansiDirectoryProvider extends ChangeNotifier {
void setUserPosition(Position? position) {
userPosition = position;
userLocation = "${position?.latitude}, ${position?.longitude}";
if (position == null) {
userLocation = "Unknown Location";
} else {
userLocation = "${position.latitude}, ${position.longitude}";
}
notifyListeners();
}

View File

@@ -20,6 +20,7 @@ class MzansiProfileProvider extends ChangeNotifier {
ImageProvider<Object>? businessUserSignature;
UserConsent? userConsent;
List<BusinessEmployee>? employeeList;
List<AppUser> userSearchResults = [];
MzansiProfileProvider({
this.personalHome = true,
@@ -132,4 +133,9 @@ class MzansiProfileProvider extends ChangeNotifier {
employeeList!.add(newEmployee);
notifyListeners();
}
void setUserearchResults({required List<AppUser> userSearchResults}) {
this.userSearchResults = userSearchResults;
notifyListeners();
}
}