|
|
|
|
@ -28,14 +28,14 @@ class NotificationItem extends StatelessWidget {
|
|
|
|
|
label: notification.priorityName,
|
|
|
|
|
textColor: AppColor.getRequestStatusTextColorByName(context, notification.priorityName!),
|
|
|
|
|
backgroundColor: AppColor.getRequestStatusColorByName(context, notification.priorityName!),
|
|
|
|
|
).toShimmer(isShow: isLoading,context: context),
|
|
|
|
|
).toShimmer(isShow: isLoading, context: context),
|
|
|
|
|
8.width,
|
|
|
|
|
if ((notification.statusName ?? "").isNotEmpty && notification.sourceName != "Asset Transfer")
|
|
|
|
|
StatusLabel(
|
|
|
|
|
label: notification.statusName ?? "",
|
|
|
|
|
textColor: AppColor.getRequestStatusTextColorByName(context, notification.statusName ?? ""),
|
|
|
|
|
backgroundColor: AppColor.getRequestStatusColorByName(context, notification.statusName ?? ""),
|
|
|
|
|
).toShimmer(isShow: isLoading,context: context),
|
|
|
|
|
).toShimmer(isShow: isLoading, context: context),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
8.height,
|
|
|
|
|
@ -47,7 +47,7 @@ class NotificationItem extends StatelessWidget {
|
|
|
|
|
style: AppTextStyles.heading6.copyWith(
|
|
|
|
|
color: context.isDark ? AppColor.neutral30 : AppColor.neutral50,
|
|
|
|
|
),
|
|
|
|
|
).toShimmer(isShow: isLoading,context: context).expanded,
|
|
|
|
|
).toShimmer(isShow: isLoading, context: context).expanded,
|
|
|
|
|
8.width,
|
|
|
|
|
Text(
|
|
|
|
|
notification.createdOn?.toServiceRequestCardFormat ?? "",
|
|
|
|
|
@ -55,7 +55,7 @@ class NotificationItem extends StatelessWidget {
|
|
|
|
|
style: AppTextStyles.tinyFont.copyWith(
|
|
|
|
|
color: context.isDark ? AppColor.neutral20 : AppColor.neutral50,
|
|
|
|
|
),
|
|
|
|
|
).toShimmer(isShow: isLoading,context: context),
|
|
|
|
|
).toShimmer(isShow: isLoading, context: context),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
@ -63,7 +63,7 @@ class NotificationItem extends StatelessWidget {
|
|
|
|
|
style: AppTextStyles.bodyText2.copyWith(
|
|
|
|
|
color: context.isDark ? AppColor.neutral10 : const Color(0xFF757575),
|
|
|
|
|
),
|
|
|
|
|
).toShimmer(isShow: isLoading,context: context),
|
|
|
|
|
).toShimmer(isShow: isLoading, context: context),
|
|
|
|
|
],
|
|
|
|
|
).onPress(() {
|
|
|
|
|
onPressed(notification);
|
|
|
|
|
|