From ec4916d4ecfbf5e4a82a1ccffabbaf46ada8302a Mon Sep 17 00:00:00 2001 From: zaid_daoud Date: Wed, 30 Aug 2023 12:25:53 +0300 Subject: [PATCH] hide create service request module form engineer session --- lib/views/pages/user/land_page.dart | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/views/pages/user/land_page.dart b/lib/views/pages/user/land_page.dart index a01fbc0b..e249206d 100644 --- a/lib/views/pages/user/land_page.dart +++ b/lib/views/pages/user/land_page.dart @@ -152,14 +152,14 @@ class _LandPageState extends State { mainAxisSpacing: 12, childAspectRatio: 1, children: [ - // if (_userProvider.user != null && _userProvider.user.type == UsersTypes.normal_user) - LandPageItem( - text: _subtitle.newServiceRequest, - icon: FontAwesomeIcons.tools, - onPressed: () { - Navigator.of(context).pushNamed(CreateRequestPage.id); - }, - ), + if (_userProvider.user != null && _userProvider.user.type == UsersTypes.normal_user) + LandPageItem( + text: _subtitle.newServiceRequest, + icon: FontAwesomeIcons.tools, + onPressed: () { + Navigator.of(context).pushNamed(CreateRequestPage.id); + }, + ), LandPageItem( text: _subtitle.trackServiceRequest, icon: FontAwesomeIcons.tasks,