dynamic list center issue fixed.

merge-requests/11/head
Sikander Saleem 3 years ago
parent d6315b0674
commit 06810486e3

@ -1,6 +1,6 @@
class CalculateAbsenceDuration {
int? pABSENCEDAYS;
int? pABSENCEHOURS;
num? pABSENCEDAYS;
num? pABSENCEHOURS;
String? pRETURNMSG;
String? pRETURNSTATUS;

@ -81,8 +81,8 @@ class _AddLeaveBalanceScreenState extends State<AddLeaveBalanceScreen> {
Utils.showLoading(context);
CalculateAbsenceDuration duration = await LeaveBalanceApiClient()
.calculateAbsenceDuration(selectedAbsenceType!.aBSENCEATTENDANCETYPEID!, Utils.getMonthNamedFormat(startDateTime!), Utils.getMonthNamedFormat(endDateTime!), -999);
print(duration.toJson());
totalDays = duration.pABSENCEDAYS;
totalDays = duration.pABSENCEDAYS?.toInt();
Utils.hideLoading(context);
setState(() {});
} catch (ex) {

@ -69,10 +69,8 @@ class _DynamicListViewScreenState extends State<DynamicListViewScreen> {
isTicketRequest = dynamicParams!.dynamicId == "HMG_TKT_NEW_EIT_SS";
getTransactions();
}
Widget dataWidget = ListView(
physics: const BouncingScrollPhysics(),
shrinkWrap: true,
padding: const EdgeInsets.all(21),
children: [
// HMG_TKT_NEW_EIT_SS Id used for ticket balance dashboard

Loading…
Cancel
Save