Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,16 @@ class _CupertinoTrailingState extends CustomState<CupertinoTrailing, void, Conve
? context.theme.colorScheme.onBubble(context, controller.chat.isIMessage)
: context.theme.colorScheme.outline,
size: 12,
))
)),
if (cachedLatestMessage?.error ?? 0 > 0)
Padding(
padding: const EdgeInsets.only(top: 5.0),
child: Icon(
CupertinoIcons.clear_circled_solid,
color: context.theme.colorScheme.error,
size: 12,
),
),
],
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,14 @@ class _MaterialTrailingState extends CustomState<MaterialTrailing, void, Convers
color: controller.shouldHighlight.value || unread ? context.theme.colorScheme.primary : context.theme.colorScheme.outline,
size: 15,
)),
if ((cachedLatestMessage?.error ?? 0) > 0)
const SizedBox(width: 5),
if ((cachedLatestMessage?.error ?? 0) > 0)
Icon(
Icons.error,
color: context.theme.colorScheme.error,
size: 15,
),
],
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ class _DeliveredIndicatorState extends CustomState<DeliveredIndicator, void, Mes
return buildTwoPiece("Scheduled", buildDate(message.dateScheduled));
}
return buildTwoPiece("Sent", buildDate(message.dateCreated));
} else if (message.error > 0) {
return buildTwoPiece("Failed", buildDate(message.dateCreated));
}

return [];
Expand Down