Info:
This is documentation for Stream Chat Flutter SDK v4, which is no longer actively maintained. For up-to-date documentation, see the latest version (v10).

StreamChatCore

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 web socket connection is automatically closed and when it goes back to foreground the connection is opened again.

Like the StreamChat widget in the higher level UI package, the StreamChatCore widget should be on the top level before using any Stream functionality:

return MaterialApp(
      title: 'Stream Chat Core Example',
      home: HomeScreen(),
      builder: (context, child) => StreamChatCore(
        client: client,
        child: child!,
      ),
    );
Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat Flutter v4: <Your Question>