How chatwoot/chatwoot-flutter-sdk works
This Flutter SDK offers two integration paths: embed Chatwoot’s website widget, or build a custom chat UI with ChatwootClient. In the client path, an app creates a client with callbacks and loads or sends messages; callbacks expose messaging and connection events. The README also identifies Hive-backed local persistence. The tree shows UI, repository, remote-service, and storage modules, but no source excerpts were provided, so their internal call relationships are not verified here.
Main entry points: chatwoot_client.dart Chatwoot Client · local_storage.dart Hive Storage · chatwoot_client_service.dart Remote API Service · entity Stored Entities
Components 24
Public API
- SDK Entry
lib/chatwoot_sdk.dart - Client Parameters
lib/chatwoot_parameters.dart
Embedded Chat
- Website Widget
lib/ui/webview_widget/chatwoot_widget.dart - WebView Host
lib/ui/webview_widget/webview.dart - Widget Utilities
lib/ui/webview_widget/utils.dart - Chat Page
lib/ui/chatwoot_chat_page.dart - Chat Dialog
lib/ui/chatwoot_chat_dialog.dart - Chat Theme
lib/ui/chatwoot_chat_theme.dart
Client Runtime
- Chatwoot Client
lib/chatwoot_client.dart - Event Callbacks
lib/chatwoot_callbacks.dart - Chat Repository
lib/data/chatwoot_repository.dart - Remote API Service
lib/data/remote/service/chatwoot_client_service.dart - Client Auth
lib/data/remote/service/chatwoot_client_auth_service.dart - API Interceptor
lib/data/remote/service/chatwoot_client_api_interceptor.dart - API Requests
lib/data/remote/requests - Remote Events
lib/data/remote/responses/chatwoot_event.dart
Local Data
- Hive Storage
lib/data/local/local_storage.dart - Contact DAO
lib/data/local/dao/chatwoot_contact_dao.dart - Conversation DAO
lib/data/local/dao/chatwoot_conversation_dao.dart - Messages DAO
lib/data/local/dao/chatwoot_messages_dao.dart - User DAO
lib/data/local/dao/chatwoot_user_dao.dart - Stored Entities
lib/data/local/entity
Other components
- Flutter App
- Chatwoot Server
Connections 21
- Flutter App → Website Widget: embeds
README.md - Flutter App → Chatwoot Client: creates
README.md - Flutter App → Chatwoot Client: loads messages
README.md - Flutter App → Chatwoot Client: sends messages
README.md - Flutter App → Event Callbacks: provides
README.md - Website Widget → Chatwoot Server: connects to
README.md - Chatwoot Client → Event Callbacks: notifies
README.md - Chatwoot Client → Hive Storage: uses Hive
README.md - Chatwoot Client → Chat Repository
- Chat Repository → Remote API Service
- Remote API Service → Chatwoot Server
- Client Auth → Remote API Service
- API Interceptor → Remote API Service
- Hive Storage → Contact DAO
- Hive Storage → Conversation DAO
- Hive Storage → Messages DAO
- Hive Storage → User DAO
- Contact DAO → Stored Entities
- Conversation DAO → Stored Entities
- Messages DAO → Stored Entities
- User DAO → Stored Entities