Skip to main content

RtkChatIconWidget

A widget for displaying a chat icon in a RealtimeKit-based Flutter application, enabling users to navigate to the chat page.. The icon triggers navigation to the ChatsPage upon being pressed and marks all messages as read.

info

RtkProvider needs to be added above RtkChatIconWidget which will manage RealtimeKit client object for chat icon widget by itself.

Usage

Below is an example illustrating the integration of RtkChatIconWidget within a Flutter application:

RtkChatIconWidget()

Details

When the RtkChatIconWidget is tapped, it performs two primary actions:

  1. Marks all chat messages as read.
  2. Navigates the user to the ChatsPage.
Chat IconChat Screen