removed some fields from profile

This commit is contained in:
2024-10-15 16:32:39 +05:30
parent 17c100a035
commit cd7c16e81b
3 changed files with 37 additions and 38 deletions

View File

@@ -209,44 +209,44 @@ class _ViewProfileScreenState extends State<ViewProfileScreen> {
// SingleItem(
// heading: "Next of kin",
// value: detail.kin ?? ""),
SingleItem(
heading: "Total Holidays Left",
value:
"${detail.staffWorkLoads?.firstOrNull?.holidayAlwnNoOfDys ?? "0"} Days (${detail.staffWorkLoads?.firstOrNull?.holidayAlwnNoOfHours ?? "0"} hours)",
onTap: () {
if (detail.staffWorkLoads?.firstOrNull !=
null) {}
_onTotalHolidaysBoxTap(
detail.staffWorkLoads!.first);
},
),
SingleItem(
heading: "",
value: "Training",
onTap: () {
Get.toNamed(
CustomRouteNames.kTrainingsScreen);
}),
// SingleItem(
// heading: "Total Holidays Left",
// value:
// "${detail.staffWorkLoads?.firstOrNull?.holidayAlwnNoOfDys ?? "0"} Days (${detail.staffWorkLoads?.firstOrNull?.holidayAlwnNoOfHours ?? "0"} hours)",
// onTap: () {
// if (detail.staffWorkLoads?.firstOrNull !=
// null) {}
// _onTotalHolidaysBoxTap(
// detail.staffWorkLoads!.first);
// },
// ),
// SingleItem(
// heading: "",
// value: "COVID Checks",
// onTap: () {}),
12.verticalSpace,
Obx(() {
return Align(
alignment: Alignment.centerLeft,
child: IgnorePointer(
ignoring: true,
child: CustomCheckBox(
checkBoxValue: controller.covidCheck(),
titleText: "COVID Check",
onTap: () {
// controller.covidCheck.toggle();
},
),
),
);
}),
// value: "Training",
// onTap: () {
// Get.toNamed(
// CustomRouteNames.kTrainingsScreen);
// }),
// // SingleItem(
// // heading: "",
// // value: "COVID Checks",
// // onTap: () {}),
// 12.verticalSpace,
// Obx(() {
// return Align(
// alignment: Alignment.centerLeft,
// child: IgnorePointer(
// ignoring: true,
// child: CustomCheckBox(
// checkBoxValue: controller.covidCheck(),
// titleText: "COVID Check",
// onTap: () {
// // controller.covidCheck.toggle();
// },
// ),
// ),
// );
// }),
],
),
),