mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 05:45:10 +00:00
chore: Follow up presences
This commit is contained in:
parent
bee90019bb
commit
59de9d299d
1 changed files with 5 additions and 2 deletions
|
@ -51,6 +51,7 @@ class UserBottomSheetView extends StatelessWidget {
|
||||||
final lastActiveTimestamp = presence.lastActiveTimestamp;
|
final lastActiveTimestamp = presence.lastActiveTimestamp;
|
||||||
|
|
||||||
return Row(
|
return Row(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
width: 8,
|
width: 8,
|
||||||
|
@ -64,13 +65,15 @@ class UserBottomSheetView extends StatelessWidget {
|
||||||
if (presence.currentlyActive == true)
|
if (presence.currentlyActive == true)
|
||||||
Text(
|
Text(
|
||||||
L10n.of(context)!.currentlyActive,
|
L10n.of(context)!.currentlyActive,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
style: Theme.of(context).textTheme.bodySmall,
|
style: Theme.of(context).textTheme.bodySmall,
|
||||||
),
|
)
|
||||||
if (lastActiveTimestamp != null)
|
else if (lastActiveTimestamp != null)
|
||||||
Text(
|
Text(
|
||||||
L10n.of(context)!.lastActiveAgo(
|
L10n.of(context)!.lastActiveAgo(
|
||||||
lastActiveTimestamp.localizedTimeShort(context),
|
lastActiveTimestamp.localizedTimeShort(context),
|
||||||
),
|
),
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
style: Theme.of(context).textTheme.bodySmall,
|
style: Theme.of(context).textTheme.bodySmall,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue