Clean up
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user