chore(ui): bump jiffy to v6.2.1
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -14,6 +14,7 @@ import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||
/// [StreamChatTheme].
|
||||
/// Modify it to change the widget's appearance.
|
||||
/// {@endtemplate}
|
||||
@Deprecated('Use `StreamUserListTile` instead.')
|
||||
class StreamUserItem extends StatelessWidget {
|
||||
/// {@macro streamUserItem}
|
||||
const StreamUserItem({
|
||||
@@ -73,11 +74,12 @@ class StreamUserItem extends StatelessWidget {
|
||||
|
||||
Widget _buildLastActive(BuildContext context) {
|
||||
final chatTheme = StreamChatTheme.of(context);
|
||||
final lastActive = user.lastActive ?? DateTime.now();
|
||||
return Text(
|
||||
user.online
|
||||
? context.translations.userOnlineText
|
||||
: '${context.translations.userLastOnlineText} '
|
||||
'${Jiffy(user.lastActive).fromNow()}',
|
||||
'${Jiffy.parseFromDateTime(lastActive).fromNow()}',
|
||||
style: chatTheme.textTheme.footnote.copyWith(
|
||||
color: chatTheme.colorTheme.textHighEmphasis.withOpacity(0.5),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user