|
|
|
@ -108,9 +108,7 @@ class _NotificationsListPageState extends State<NotificationsListPage> {
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: notificationsVM.notificationsList[index].message!.toText16(
|
|
|
|
child: notificationsVM.notificationsList[index].message!.toText16(
|
|
|
|
isBold: (notificationsVM.notificationsList[index].isRead == false),
|
|
|
|
isBold: (notificationsVM.notificationsList[index].isRead == false),
|
|
|
|
weight: (notificationsVM.notificationsList[index].isRead == false)
|
|
|
|
weight: (notificationsVM.notificationsList[index].isRead == false) ? FontWeight.w600 : FontWeight.w400,
|
|
|
|
? FontWeight.w600
|
|
|
|
|
|
|
|
: FontWeight.w400,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(width: 8.w),
|
|
|
|
SizedBox(width: 8.w),
|
|
|
|
@ -144,11 +142,7 @@ class _NotificationsListPageState extends State<NotificationsListPage> {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Icon(Icons.access_time, size: 12.w, color: AppColors.textColor),
|
|
|
|
Icon(Icons.access_time, size: 12.w, color: AppColors.textColor),
|
|
|
|
SizedBox(width: 4.w),
|
|
|
|
SizedBox(width: 4.w),
|
|
|
|
_formatTime(notificationsVM.notificationsList[index].isSentOn).toText10(
|
|
|
|
_formatTime(notificationsVM.notificationsList[index].isSentOn).toText10(weight: FontWeight.w600, color: AppColors.textColor, isEnglishOnly: true),
|
|
|
|
weight: FontWeight.w600,
|
|
|
|
|
|
|
|
color: AppColors.textColor,
|
|
|
|
|
|
|
|
isEnglishOnly: true
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -168,11 +162,7 @@ class _NotificationsListPageState extends State<NotificationsListPage> {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Icon(Icons.calendar_today, size: 12.w, color: AppColors.textColor),
|
|
|
|
Icon(Icons.calendar_today, size: 12.w, color: AppColors.textColor),
|
|
|
|
SizedBox(width: 4.w),
|
|
|
|
SizedBox(width: 4.w),
|
|
|
|
_formatDate(notificationsVM.notificationsList[index].isSentOn).toText10(
|
|
|
|
_formatDate(notificationsVM.notificationsList[index].isSentOn).toText10(weight: FontWeight.w600, color: AppColors.textColor, isEnglishOnly: true),
|
|
|
|
weight: FontWeight.w600,
|
|
|
|
|
|
|
|
color: AppColors.textColor,
|
|
|
|
|
|
|
|
isEnglishOnly: true
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -191,8 +181,7 @@ class _NotificationsListPageState extends State<NotificationsListPage> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// Second row: Contains Image chip (if MessageType is "image")
|
|
|
|
// Second row: Contains Image chip (if MessageType is "image")
|
|
|
|
if (notificationsVM.notificationsList[index].messageType != null &&
|
|
|
|
if (notificationsVM.notificationsList[index].messageType != null && notificationsVM.notificationsList[index].messageType!.toLowerCase() == "image")
|
|
|
|
notificationsVM.notificationsList[index].messageType!.toLowerCase() == "image")
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(top: 8.h),
|
|
|
|
padding: EdgeInsets.only(top: 8.h),
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
|