Skip to content

Conversation

@Priya-546
Copy link

The following code implements a "last seen" and "online status" feature for the provided chat application. It displays "Online" if the user is currently active, and the last seen time if they are not. The getLastSeen method formats the last seen time based on the current time and the difference. The home page lists chat summaries with name, message, time, online status, and last seen information. The onLastSeenUpdated callback updates the chat's last seen status and online status dynamically, providing a real-time user experience in the chat application.

Priya-546 added 3 commits May 22, 2024 08:45
Update  ChatPage.dart to add the feature of last seen and online in the appbar of the ChatPage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant