removed some fields from profile
This commit is contained in:
parent
17c100a035
commit
cd7c16e81b
|
|
@ -5,8 +5,6 @@ import 'package:get_time_ago/get_time_ago.dart';
|
||||||
|
|
||||||
import 'utilities/app_session_manager.dart';
|
import 'utilities/app_session_manager.dart';
|
||||||
import 'utilities/custom_timeago_messages.dart';
|
import 'utilities/custom_timeago_messages.dart';
|
||||||
import 'utilities/fcm_notifications.dart';
|
|
||||||
import 'utilities/notification_util.dart';
|
|
||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
|
|
||||||
|
|
@ -209,44 +209,44 @@ class _ViewProfileScreenState extends State<ViewProfileScreen> {
|
||||||
// SingleItem(
|
// SingleItem(
|
||||||
// heading: "Next of kin",
|
// heading: "Next of kin",
|
||||||
// value: detail.kin ?? ""),
|
// value: detail.kin ?? ""),
|
||||||
SingleItem(
|
// SingleItem(
|
||||||
heading: "Total Holidays Left",
|
// heading: "Total Holidays Left",
|
||||||
value:
|
// value:
|
||||||
"${detail.staffWorkLoads?.firstOrNull?.holidayAlwnNoOfDys ?? "0"} Days (${detail.staffWorkLoads?.firstOrNull?.holidayAlwnNoOfHours ?? "0"} hours)",
|
// "${detail.staffWorkLoads?.firstOrNull?.holidayAlwnNoOfDys ?? "0"} Days (${detail.staffWorkLoads?.firstOrNull?.holidayAlwnNoOfHours ?? "0"} hours)",
|
||||||
onTap: () {
|
// onTap: () {
|
||||||
if (detail.staffWorkLoads?.firstOrNull !=
|
// if (detail.staffWorkLoads?.firstOrNull !=
|
||||||
null) {}
|
// null) {}
|
||||||
_onTotalHolidaysBoxTap(
|
// _onTotalHolidaysBoxTap(
|
||||||
detail.staffWorkLoads!.first);
|
// detail.staffWorkLoads!.first);
|
||||||
},
|
// },
|
||||||
),
|
// ),
|
||||||
SingleItem(
|
|
||||||
heading: "",
|
|
||||||
value: "Training",
|
|
||||||
onTap: () {
|
|
||||||
Get.toNamed(
|
|
||||||
CustomRouteNames.kTrainingsScreen);
|
|
||||||
}),
|
|
||||||
// SingleItem(
|
// SingleItem(
|
||||||
// heading: "",
|
// heading: "",
|
||||||
// value: "COVID Checks",
|
// value: "Training",
|
||||||
// onTap: () {}),
|
// onTap: () {
|
||||||
12.verticalSpace,
|
// Get.toNamed(
|
||||||
Obx(() {
|
// CustomRouteNames.kTrainingsScreen);
|
||||||
return Align(
|
// }),
|
||||||
alignment: Alignment.centerLeft,
|
// // SingleItem(
|
||||||
child: IgnorePointer(
|
// // heading: "",
|
||||||
ignoring: true,
|
// // value: "COVID Checks",
|
||||||
child: CustomCheckBox(
|
// // onTap: () {}),
|
||||||
checkBoxValue: controller.covidCheck(),
|
// 12.verticalSpace,
|
||||||
titleText: "COVID Check",
|
// Obx(() {
|
||||||
onTap: () {
|
// return Align(
|
||||||
// controller.covidCheck.toggle();
|
// alignment: Alignment.centerLeft,
|
||||||
},
|
// child: IgnorePointer(
|
||||||
),
|
// ignoring: true,
|
||||||
),
|
// child: CustomCheckBox(
|
||||||
);
|
// checkBoxValue: controller.covidCheck(),
|
||||||
}),
|
// titleText: "COVID Check",
|
||||||
|
// onTap: () {
|
||||||
|
// // controller.covidCheck.toggle();
|
||||||
|
// },
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// );
|
||||||
|
// }),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -661,6 +661,7 @@ class HttpRequestClient {
|
||||||
final statusFail = (map['status'] is String &&
|
final statusFail = (map['status'] is String &&
|
||||||
(map['status'] as String).toLowerCase() == "fail");
|
(map['status'] as String).toLowerCase() == "fail");
|
||||||
final status400 = (map['status'] is int && map['status'] == 400);
|
final status400 = (map['status'] is int && map['status'] == 400);
|
||||||
|
|
||||||
if (map.containsKey('status') && (statusFail || status400)) {
|
if (map.containsKey('status') && (statusFail || status400)) {
|
||||||
return ResponseModel.named(
|
return ResponseModel.named(
|
||||||
statusCode: 0,
|
statusCode: 0,
|
||||||
|
|
|
||||||
Reference in New Issue