chore: update sample app.

Signed-off-by: Sahil Kumar <xdsahil@gmail.com>
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()}';
}
}
}
+7 -7
View File
@@ -4,16 +4,16 @@ publish_to: "none"
version: 2.2.0
environment:
sdk: '>=2.19.0 <4.0.0'
sdk: '>=3.0.0 <4.0.0'
flutter: ">=3.7.0"
dependencies:
flutter_app_badger: ^1.5.0
flutter:
sdk: flutter
stream_chat_flutter: ^6.8.1
stream_chat_persistence: ^6.7.0
stream_chat_localizations: ^5.8.0
stream_chat_flutter: ^6.9.0
stream_chat_persistence: ^6.8.0
stream_chat_localizations: ^5.9.0
flutter_local_notifications: ^15.1.0+1
flutter_svg: ^2.0.7
flutter_secure_storage: ^8.0.0
@@ -24,11 +24,11 @@ dependencies:
collection: ^1.17.1
sentry_flutter: ^7.9.0
flutter_slidable: ^3.0.0
go_router: ^10.0.0
go_router: ^10.1.0
provider: ^6.0.5
video_player: ^2.7.0
firebase_core: ^2.15.0
firebase_messaging: ^14.6.5
firebase_core: ^2.15.1
firebase_messaging: ^14.6.6
dev_dependencies:
flutter_launcher_icons: ^0.13.1