StreamChatCore is a version of
StreamChat found in
stream_chat_flutter that is decoupled from
theme and initialisations.
Find the pub.dev documentation here
StreamChatCore is used to provide information about the chat client to the widget tree.
This Widget is used to react to life cycle changes and system updates.
When the app goes into the background, the websocket connection is automatically closed and when it goes back to foreground the connection is opened again.
StreamChat widget in the higher level UI package, the
StreamChatCore widget should
be on the top level before using any Stream functionality:
title: 'Stream Chat Core Example',
builder: (context, child) => StreamChatCore(