|
|
|
@ -64,47 +64,56 @@ class _LeaveBalanceState extends State<LeaveBalance> {
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
title: LocaleKeys.leaveBalance.tr(),
|
|
|
|
title: LocaleKeys.leaveBalance.tr(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
body: absenceTransList == null
|
|
|
|
body: Column(
|
|
|
|
? const SizedBox()
|
|
|
|
children: [
|
|
|
|
: (absenceTransList!.isEmpty
|
|
|
|
Padding(
|
|
|
|
? Utils.getNoDataWidget(context).paddingOnly(top: 50)
|
|
|
|
padding: const EdgeInsets.all(21.0),
|
|
|
|
: ListView(
|
|
|
|
child: BalancesDashboardWidget(LocaleKeys.currentLeaveBalance.tr(), true, selectedEmp: employeeId, showLoading: false),
|
|
|
|
physics: const BouncingScrollPhysics(),
|
|
|
|
),
|
|
|
|
padding: const EdgeInsets.all(21),
|
|
|
|
12.height,
|
|
|
|
children: [
|
|
|
|
absenceTransList == null
|
|
|
|
BalancesDashboardWidget(LocaleKeys.currentLeaveBalance.tr(), true, selectedEmp: employeeId, showLoading: false),
|
|
|
|
? const SizedBox()
|
|
|
|
12.height,
|
|
|
|
: (absenceTransList!.isEmpty
|
|
|
|
ListView.separated(
|
|
|
|
? Utils.getNoDataWidget(context).paddingOnly(top: 50)
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
: ListView(
|
|
|
|
shrinkWrap: true,
|
|
|
|
physics: const BouncingScrollPhysics(),
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
padding: const EdgeInsets.all(21),
|
|
|
|
itemBuilder: (cxt, int index) => Column(
|
|
|
|
children: [
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
// BalancesDashboardWidget(LocaleKeys.currentLeaveBalance.tr(), true, selectedEmp: employeeId, showLoading: false),
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
// 12.height,
|
|
|
|
children: [
|
|
|
|
ListView.separated(
|
|
|
|
ItemDetailGrid(
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
ItemDetailViewCol(LocaleKeys.startDateT.tr(), absenceTransList![index].sTARTDATE ?? ""),
|
|
|
|
shrinkWrap: true,
|
|
|
|
ItemDetailViewCol(LocaleKeys.endDateT.tr(), absenceTransList![index].eNDDATE ?? ""),
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
),
|
|
|
|
itemBuilder: (cxt, int index) => Column(
|
|
|
|
ItemDetailGrid(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
ItemDetailViewCol(LocaleKeys.absenceType.tr(), absenceTransList![index].aBSENCETYPE ?? ""),
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
ItemDetailViewCol(LocaleKeys.absenceCategory.tr(), absenceTransList![index].aBSENCECATEGORY ?? ""),
|
|
|
|
children: [
|
|
|
|
),
|
|
|
|
ItemDetailGrid(
|
|
|
|
ItemDetailGrid(
|
|
|
|
ItemDetailViewCol(LocaleKeys.startDateT.tr(), absenceTransList![index].sTARTDATE ?? ""),
|
|
|
|
ItemDetailViewCol(LocaleKeys.days.tr(), absenceTransList![index].aBSENCEDAYS?.toString() ?? ""),
|
|
|
|
ItemDetailViewCol(LocaleKeys.endDateT.tr(), absenceTransList![index].eNDDATE ?? ""),
|
|
|
|
ItemDetailViewCol(LocaleKeys.hours.tr(), absenceTransList![index].aBSENCEHOURS?.toString() ?? ""),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
ItemDetailGrid(
|
|
|
|
ItemDetailGrid(
|
|
|
|
ItemDetailViewCol(LocaleKeys.absenceType.tr(), absenceTransList![index].aBSENCETYPE ?? ""),
|
|
|
|
ItemDetailViewCol(LocaleKeys.approvalStatus.tr(), absenceTransList![index].aPPROVALSTATUS ?? ""),
|
|
|
|
ItemDetailViewCol(LocaleKeys.absenceCategory.tr(), absenceTransList![index].aBSENCECATEGORY ?? ""),
|
|
|
|
ItemDetailViewCol(LocaleKeys.absenceStatus.tr(), absenceTransList![index].aBSENCESTATUS ?? ""),
|
|
|
|
),
|
|
|
|
isItLast: true,
|
|
|
|
ItemDetailGrid(
|
|
|
|
),
|
|
|
|
ItemDetailViewCol(LocaleKeys.days.tr(), absenceTransList![index].aBSENCEDAYS?.toString() ?? ""),
|
|
|
|
],
|
|
|
|
ItemDetailViewCol(LocaleKeys.hours.tr(), absenceTransList![index].aBSENCEHOURS?.toString() ?? ""),
|
|
|
|
).objectContainerView(),
|
|
|
|
),
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
ItemDetailGrid(
|
|
|
|
itemCount: absenceTransList!.length),
|
|
|
|
ItemDetailViewCol(LocaleKeys.approvalStatus.tr(), absenceTransList![index].aPPROVALSTATUS ?? ""),
|
|
|
|
],
|
|
|
|
ItemDetailViewCol(LocaleKeys.absenceStatus.tr(), absenceTransList![index].aBSENCESTATUS ?? ""),
|
|
|
|
)),
|
|
|
|
isItLast: true,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
|
|
|
|
itemCount: absenceTransList!.length),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
)),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
floatingActionButton: Container(
|
|
|
|
floatingActionButton: Container(
|
|
|
|
height: 54,
|
|
|
|
height: 54,
|
|
|
|
width: 54,
|
|
|
|
width: 54,
|
|
|
|
|