From 60482a70765c9b30718c605e1173032b9534336c Mon Sep 17 00:00:00 2001 From: "hanie.khodkari" Date: Sat, 15 Mar 2025 19:30:34 +0330 Subject: [PATCH] Remove transfer condition --- .../Detail/my_items_detail_box_widget.dart | 51 ++++++++++--------- 1 file changed, 26 insertions(+), 25 deletions(-) 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 eed41a4..d88537f 100755 --- a/lib/widgets/MyItemsScreens/Detail/my_items_detail_box_widget.dart +++ b/lib/widgets/MyItemsScreens/Detail/my_items_detail_box_widget.dart @@ -431,31 +431,32 @@ class MyItemsDetailsDataBox extends StatelessWidget { SizedBox( height: 20, ), - 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.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(