|
|
|
@ -64,7 +64,14 @@ class _LeaveBalanceState extends State<LeaveBalance> {
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
title: LocaleKeys.leaveBalance.tr(),
|
|
|
|
title: LocaleKeys.leaveBalance.tr(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
body: absenceTransList == null
|
|
|
|
body: Column(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(21.0),
|
|
|
|
|
|
|
|
child: BalancesDashboardWidget(LocaleKeys.currentLeaveBalance.tr(), true, selectedEmp: employeeId, showLoading: false),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
12.height,
|
|
|
|
|
|
|
|
absenceTransList == null
|
|
|
|
? const SizedBox()
|
|
|
|
? const SizedBox()
|
|
|
|
: (absenceTransList!.isEmpty
|
|
|
|
: (absenceTransList!.isEmpty
|
|
|
|
? Utils.getNoDataWidget(context).paddingOnly(top: 50)
|
|
|
|
? Utils.getNoDataWidget(context).paddingOnly(top: 50)
|
|
|
|
@ -72,8 +79,8 @@ class _LeaveBalanceState extends State<LeaveBalance> {
|
|
|
|
physics: const BouncingScrollPhysics(),
|
|
|
|
physics: const BouncingScrollPhysics(),
|
|
|
|
padding: const EdgeInsets.all(21),
|
|
|
|
padding: const EdgeInsets.all(21),
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
BalancesDashboardWidget(LocaleKeys.currentLeaveBalance.tr(), true, selectedEmp: employeeId, showLoading: false),
|
|
|
|
// BalancesDashboardWidget(LocaleKeys.currentLeaveBalance.tr(), true, selectedEmp: employeeId, showLoading: false),
|
|
|
|
12.height,
|
|
|
|
// 12.height,
|
|
|
|
ListView.separated(
|
|
|
|
ListView.separated(
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
shrinkWrap: true,
|
|
|
|
shrinkWrap: true,
|
|
|
|
@ -105,6 +112,8 @@ class _LeaveBalanceState extends State<LeaveBalance> {
|
|
|
|
itemCount: absenceTransList!.length),
|
|
|
|
itemCount: absenceTransList!.length),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
floatingActionButton: Container(
|
|
|
|
floatingActionButton: Container(
|
|
|
|
height: 54,
|
|
|
|
height: 54,
|
|
|
|
width: 54,
|
|
|
|
width: 54,
|
|
|
|
|