Setup

stream_chat_flutter_core is the business logic layer of the Flutter SDK. It provides controllers, state management, and widget tree integration without prescribing any specific UI. This page walks through adding the package to your project and initializing it in your app.

Add pub.dev dependency

First, you need to add the stream_chat_flutter_core dependency to your pubspec.yaml

You can either run this command:

flutter pub add stream_chat_flutter_core

OR

Add this line in the dependencies section of your pubspec.yaml after substituting latest version:

dependencies:
  stream_chat_flutter_core: ^latest_version

You can find the package details on pub.dev.