NEW: Hide sensitive data on my business user
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user