merge-requests/60/head
haroon amjad 3 years ago
parent c22556d9b6
commit 6fe015d104

@ -140,7 +140,7 @@ class SelectedItemSheet extends StatelessWidget {
Future<void> performNetworkCall(BuildContext context, {String? email, String? userId}) async {
Utils.showLoading(context);
try {
await WorkListApiClient().submitComment(comment: comment, email: email, userId: userId, notificationId: notificationID, apiMode: apiMode, approverIndex: actionHistoryList!.sEQUENCE);
await WorkListApiClient().submitComment(comment: comment, email: email, userId: userId, notificationId: notificationID, apiMode: apiMode, approverIndex: actionHistoryList != null ? actionHistoryList!.sEQUENCE : null);
Utils.hideLoading(context);
// Navigator.pop(context);
// Navigator.pop(context);
@ -212,7 +212,7 @@ class SelectedItemSheet extends StatelessWidget {
: CircularAvatar(
height: 40,
width: 40,
).toShimmer()
)
: (actionHistoryList != null && actionHistoryList!.eMPLOYEEIMAGE != null)
? CircularAvatar(
height: 40,
@ -223,7 +223,7 @@ class SelectedItemSheet extends StatelessWidget {
: CircularAvatar(
height: 40,
width: 40,
).toShimmer(),
),
16.width,
Expanded(
child: (name ?? "").toText12(),

Loading…
Cancel
Save