Understanding Setup For
First, you need to add the
stream_chat_flutter dependency to your
You can either run this command:
flutter pub add stream_chat_flutter
Add this line in the dependencies section of your
pubspec.yaml after substituting the latest version:
You can find the package details on pub.dev.
As of v5, the
stream_chat_flutter package (UI) added support for web, macOS, Windows, and Linux - on top of the original support for Android and iOS. It has, however, been possible to target desktop and web since Flutter added support for these platforms using the
stream_chat_flutter_core (builder) and
stream_chat (low-level client) packages - this remains unchanged.
Please note that Flutter Web may have additional constraints due to not supporting all plugins that Stream Chat relies on. The respective plugin creators will address this over time.
This section provides setup instructions for the respective platforms.
For the web, edit your
index.html and add the following in the
<body> tag to allow the SDK to override the right-click behavior:
<body oncontextmenu="return false;"></body>
You also need to add the following entitlements to
- Internet permission
- File access permission