improvement.

merge-requests/23/head
Sikander Saleem 3 years ago
parent 27b5cbfdf6
commit e7d2299b43

@ -127,7 +127,7 @@ class _WorkListDetailScreenState extends State<WorkListDetailScreen> {
getPoNotification();
}
if (workListData!.iTEMTYPE == "REQAPPRV") {
getPrNotificationBody = await WorkListApiClient().getPRNotificationBody(workListData!.nOTIFICATIONID!, -999);
getPRNotification();
}
notificationGetRespondAttributes();
@ -471,9 +471,7 @@ class _WorkListDetailScreenState extends State<WorkListDetailScreen> {
child: isIconAsset
? SvgPicture.asset(icon)
: Image.memory(
Utils.dataFromBase64String(
icon
),
Utils.dataFromBase64String(icon),
fit: BoxFit.cover,
),
)
@ -701,6 +699,23 @@ class _WorkListDetailScreenState extends State<WorkListDetailScreen> {
}
}
void getPRNotification() async {
try {
if (apiCallCount == 0) Utils.showLoading(context);
apiCallCount++;
getPrNotificationBody = await WorkListApiClient().getPRNotificationBody(workListData!.nOTIFICATIONID!, -999);
apiCallCount--;
if (apiCallCount == 0) {
Utils.hideLoading(context);
setState(() {});
}
} catch (ex) {
apiCallCount--;
Utils.hideLoading(context);
Utils.handleException(ex, context, null);
}
}
void notificationGetRespondAttributes() async {
try {
if (apiCallCount == 0) Utils.showLoading(context);

Loading…
Cancel
Save