chore: update sample app.

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2023-08-22 19:14:49 +05:30
parent ea8e7988cb
commit 31e4a0aafd
3 changed files with 10 additions and 10 deletions
@@ -346,7 +346,7 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
);
} else {
alternativeWidget = Text(
'${AppLocalizations.of(context).lastSeen} ${Jiffy(otherMember.lastActive).fromNow()}',
'${AppLocalizations.of(context).lastSeen} ${Jiffy.parseFromDateTime(otherMember.lastActive!).fromNow()}',
style: TextStyle(
color: StreamChatTheme.of(context)
.colorTheme
@@ -990,7 +990,7 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
);
} else {
alternativeWidget = Text(
'${AppLocalizations.of(context).lastSeen} ${Jiffy(otherMember.lastActive).fromNow()}',
'${AppLocalizations.of(context).lastSeen} ${Jiffy.parseFromDateTime(otherMember.lastActive!).fromNow()}',
style: TextStyle(
color: StreamChatTheme.of(context)
.colorTheme
@@ -1082,7 +1082,7 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
if (user.online) {
return AppLocalizations.of(context).online;
} else {
return '${AppLocalizations.of(context).lastSeen} ${Jiffy(user.lastActive).fromNow()}';
return '${AppLocalizations.of(context).lastSeen} ${Jiffy.parseFromDateTime(user.lastActive!).fromNow()}';
}
}
}