diff --git a/lib/widgets/MyItemsScreens/Detail/my_items_detail_box_widget.dart b/lib/widgets/MyItemsScreens/Detail/my_items_detail_box_widget.dart index c738d47..9a718f7 100755 --- a/lib/widgets/MyItemsScreens/Detail/my_items_detail_box_widget.dart +++ b/lib/widgets/MyItemsScreens/Detail/my_items_detail_box_widget.dart @@ -433,11 +433,10 @@ class MyItemsDetailsDataBox extends StatelessWidget { ), if (datas.repair == 0) ((datas.packageId == "null") && - (userData['roles']?.contains('Admin') || (userData['roles']?.contains('Supervisor') && datas.hospital .contains(userData['medical_center'])) || - (userData['roles']?.contains('User')))) + (userData['roles']?.contains('User'))) ? TransferDestroyButton( deviceBlockSize: _deviceBlockSize, firstColor: kDarkBlue, diff --git a/lib/widgets/MyPackagesScreens/Detail/my_packages_detail_box_widget.dart b/lib/widgets/MyPackagesScreens/Detail/my_packages_detail_box_widget.dart index fdcf10c..39978e7 100755 --- a/lib/widgets/MyPackagesScreens/Detail/my_packages_detail_box_widget.dart +++ b/lib/widgets/MyPackagesScreens/Detail/my_packages_detail_box_widget.dart @@ -325,15 +325,17 @@ class MyPackageDetailsDataBox extends StatelessWidget { SizedBox( height: 20, ), - TransferDestroyButton( - deviceBlockSize: _deviceBlockSize, - firstColor: kDarkPurple, - secondColor: kDarkPurpleSub, - text: 'Transfer', - onTap: () { - push(); - }, - ), + userData['roles'].contains('Admin') + ? Container() + : TransferDestroyButton( + deviceBlockSize: _deviceBlockSize, + firstColor: kDarkPurple, + secondColor: kDarkPurpleSub, + text: 'Transfer', + onTap: () { + push(); + }, + ), SizedBox( height: 10.0, ),