搜尋套件、儲存庫與 APP 分類

stream_chat_flutter 封面
套件詳情v9.23.0

stream_chat_flutter

Stream Chat 官方 Flutter SDK。使用 Dart 和 Flutter 建立您自己的聊天體驗。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
4.2萬
喜歡數
390
Pub 分數
120

安裝套件

flutter pub add stream_chat_flutter

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Stream Chat Flutter SDK 讓開發者能夠使用 Dart 在 Flutter 應用程式中建構自訂的即時聊天體驗。它提供一組強大的工具,可用於文字、圖片和檔案分享等訊息功能,並支援線上狀態、輸入指示器和訊息反應。該 SDK 可無縫整合至 Android、iOS、Web、macOS、Windows 和 Linux 平台,提供一致的效能與設計。憑藉強大的可擴展性與安全性,非常適合需要可靠且功能豐富通訊功能的應用。

適用情境

  • 即時團隊協作
  • 客戶支援聊天介面
  • 社交媒體訊息
  • 多人遊戲聊天
  • 電子商務買家賣家溝通

主要特色

  • 即時訊息傳遞
  • 跨平台相容性
  • 訊息回應和輸入指示
  • 線上用戶狀態追蹤
  • 檔案和影像附件支援

適合對象

  • 開發聊天密集型應用的開發者
  • 需要可擴展訊息解決方案的團隊
  • 需要多平台聊天的應用
  • 希望快速整合聊天功能的初創企業

使用建議

  • 需要 Stream 帳戶和 API 密鑰
  • 用於驗證的額外後端設定
  • 進階功能的學習曲線可能較高
  • 依賴於Stream的基礎設施穩定性

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Official Flutter packages for Stream Chat

Stream Chat Flutter SDK hero image

CI Melos

V10 brings a modern redesign, a unified design system shared across all Stream SDK platforms, and improved developer experience.

Quick Links

What's New in V10

Version 10 is a major update to the Stream Chat Flutter SDK:

  • Modern redesign — refreshed channel list, message list, composer, reactions, avatars, and media viewer with a cleaner, more polished default look.
  • Unified design system — design tokens (colors, typography, spacing, icons) are now consistent across all Stream SDK platforms. Theming is rebuilt around StreamTheme, a Flutter ThemeExtension registered on MaterialApp.theme.
  • Cross-platform name alignment — APIs and component names now match their iOS, Android, React, and React Native counterparts (e.g. StreamMessageComposer, StreamChannelListItem).
  • StreamComponentFactory — a single customization entry point that replaces the scattered builder slots that previously lived on each widget.
  • Cookbook — new task-oriented recipes for common customizations.

See the V10 Migration Guide for a full list of breaking changes and upgrade instructions.

Features

The UI package ships an extensive set of performant and customizable widgets:

  • Rich media messages with Markdown rendering
  • Reactions
  • Threads and quoted replies
  • Typing and read indicators
  • Channel and message lists
  • Message composer with autocomplete triggers (@ mentions, / commands)
  • Image, video, and file uploads with previews and a built-in media gallery viewer
  • Voice messages
  • Polls
  • Drafts
  • Pinned messages
  • Message reminders
  • Message actions context menu (reply, edit, copy, pin, delete, flag, mute, block, and more)
  • Message search
  • Giphy support
  • AI assistant streaming responses
  • Push notifications (Firebase, APN, and Huawei)
  • Offline storage and optimistic updates
  • Static and live location sharing
  • Localization
  • and a lot more.

Sample App

Check out the sample_app in this repository — a fully functional messenger built with stream_chat_flutter that demonstrates the SDK's core features end to end. It is the recommended reference when wiring things up in your own app.

For more sample apps and demos, visit GetStream/flutter-samples.

Free for Makers

Stream is free for most side and hobby projects. To qualify, your project/company needs to have fewer than five team members and under $10,000 in monthly revenue. For complete pricing details, visit our Chat Pricing Page.

Packages

Stream Chat Dart is a monorepo built using Melos. Individual packages can be found in the packages directory; configuration and top-level commands live in melos.yaml.

The SDK is layered — each package builds on top of the previous:

stream_chat

The low-level client (LLC), a pure Dart package that wraps the Stream Chat API. Use it directly if you want to build your own UI and state layer.

stream_chat_flutter_core

Provides the business logic, controllers, and builders required to integrate Stream Chat into a Flutter app, without shipping any UI of its own.

stream_chat_flutter

The full UI SDK. Includes a set of reusable and customizable UI widgets on top of the core and low-level client packages. This is the recommended starting point for most apps.

stream_chat_persistence

Provides a Drift-backed persistence client for offline storage. Plugs into any of the packages above.

stream_chat_localizations

Provides a set of localizations for the UI SDK.

Choosing the Right Package

We recommend using stream_chat_flutter for most apps. Unless your UI is completely different from the common industry standard, you should be able to customize the built-in widgets to match your needs.

  • Use stream_chat_flutter_core if you need full UI control but want the data/state logic handled for you.
  • Use stream_chat directly for maximum control over architecture, UI, and data.

You can also mix and match — it is common to use the UI SDK for most screens and drop down to the low-level client for specific operations.

Getting Started

To get started, run bootstrap after cloning the project:

melos bootstrap

The best place to start is the Flutter Chat Tutorial. It teaches you how to use this SDK and shows how to make frequently required changes.

Every package folder also includes a fully functional example with setup instructions.

Versioning Policy

All of the Stream Chat packages follow semantic versioning:

  • Bug fixes and behavior improvements cause a patch version bump.
  • New features are shipped with an increased minor version.
  • Incompatible API changes cause a major version increase.

Occasionally, the SDK can include visual changes (whitespace, color, sizing) in minor versions as we continuously improve the default look of our UI widgets.

See the installation docs and the releases page for the full version history.

We Are Hiring

We've recently closed a $38 million Series B funding round and we keep actively growing. Our APIs are used by more than a billion end-users, and you'll have a chance to make a huge impact on the product within a team of the strongest engineers all over the world.

Check out our current openings and apply via Stream's website.

所屬分類

原始碼儲存庫

使用此套件的專案