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 9a718f7..eed41a4 100755 --- a/lib/widgets/MyItemsScreens/Detail/my_items_detail_box_widget.dart +++ b/lib/widgets/MyItemsScreens/Detail/my_items_detail_box_widget.dart @@ -431,32 +431,31 @@ class MyItemsDetailsDataBox extends StatelessWidget { SizedBox( height: 20, ), - if (datas.repair == 0) - ((datas.packageId == "null") && - (userData['roles']?.contains('Supervisor') && - datas.hospital - .contains(userData['medical_center'])) || - (userData['roles']?.contains('User'))) - ? TransferDestroyButton( - deviceBlockSize: _deviceBlockSize, - firstColor: kDarkBlue, - secondColor: kDarkBlueSub, - text: 'Transfer', - onTap: () { - push(); - }, - ) - // : datas.packageId != "null" - // ? TransferDestroyButton( - // deviceBlockSize: _deviceBlockSize, - // firstColor: kDarkBlue, - // secondColor: kDarkBlueSub, - // text: 'Transfer', - // onTap: () { - // push(); - // }, - // ) - : Container(), + if (datas.packageId == "null") + if (datas.repair == 0) + (userData['roles']?.contains('Supervisor') && + datas.hospital.contains(userData['medical_center']) || + (userData['roles']?.contains('User'))) + ? TransferDestroyButton( + deviceBlockSize: _deviceBlockSize, + firstColor: kDarkBlue, + secondColor: kDarkBlueSub, + text: 'Transfer', + onTap: () { + push(); + }, + ) + // : datas.packageId != "null" + // ? TransferDestroyButton( + // deviceBlockSize: _deviceBlockSize, + // firstColor: kDarkBlue, + // secondColor: kDarkBlueSub, + // text: 'Transfer', + // onTap: () { + // push(); + // }, + // ) + : Container(), if (datas.repair == 0) if (datas.packageId == "null") SizedBox(