block business details if partial access
This commit is contained in:
parent
9e44ef9f1a
commit
b280058fd8
1 changed files with 84 additions and 73 deletions
|
|
@ -263,6 +263,14 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
|
|||
return regex.hasMatch(text);
|
||||
}
|
||||
|
||||
bool isFullAccess() {
|
||||
if (widget.arguments.businessUser!.access == "Partial") {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
nameController.dispose();
|
||||
|
|
@ -332,7 +340,9 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
|
|||
padding: const EdgeInsets.all(15),
|
||||
child: Column(
|
||||
children: [
|
||||
Column(
|
||||
Visibility(
|
||||
visible: isFullAccess(),
|
||||
child: Column(
|
||||
children: [
|
||||
const Text(
|
||||
"Business Profile",
|
||||
|
|
@ -407,6 +417,7 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
|
|||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Column(
|
||||
children: [
|
||||
//const SizedBox(height: 15.0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue