NEW: Hide sensitive data on my business user

This commit is contained in:
2025-11-21 11:59:34 +02:00
parent 56ab6bb950
commit b82a5a72c7
5 changed files with 561 additions and 255 deletions

View File

@@ -21,11 +21,13 @@ class MzansiProfileProvider extends ChangeNotifier {
UserConsent? userConsent;
List<BusinessEmployee>? employeeList;
List<AppUser> userSearchResults = [];
bool hideBusinessUserDetails;
MzansiProfileProvider({
this.personalHome = true,
this.personalIndex = 0,
this.businessIndex = 0,
this.hideBusinessUserDetails = true,
});
void reset() {
@@ -67,6 +69,11 @@ class MzansiProfileProvider extends ChangeNotifier {
notifyListeners();
}
void setHideBusinessUserDetails(bool hideBusinessUserDetails) {
this.hideBusinessUserDetails = hideBusinessUserDetails;
notifyListeners();
}
void setUserProfilePicUrl(String url) {
userProfilePicUrl = url;
userProfilePicture = url.isNotEmpty ? NetworkImage(url) : null;