Skip to content

docs(flutter): Chat SDK 5.1.2 and UI Kit 6.4.0 offline support - #635

Merged
ketanyekale merged 8 commits into
mainfrom
docs/flutter-sdk-5.1.2-uikit-6.4.0
Nov 24, 2026
Merged

ketanyekale merged 8 commits into
mainfrom
docs/flutter-sdk-5.1.2-uikit-6.4.0

Conversation

@adityagokula2210

Copy link
Copy Markdown
Contributor

Combines #628 (Flutter Chat SDK 5.1.2) and #630 (Flutter UI Kit 6.4.0 offline support) into one PR. Both releases are live on pub.dev: cometchat_sdk 5.1.2 and cometchat_chat_uikit 6.4.0 (which requires ^5.1.2), so this can merge now. The two PRs touch different files; this branch is their four commits on top of main, with no other changes.

Flutter Chat SDK 5.1.2 (from #628)

  • pin-message, save-message, pin-conversation, real-time-listeners: pin/unpin, save/unsave and conversation pin/unpin listener events no longer fire on the device that made the change; that device updates from the call's onSuccess. Flutter UI Kit 6.3.0-or-earlier users upgrade to 6.4.0 with SDK 5.1.2.
  • offline-sync, offline-reference, offline-encryption: new OfflineCacheResetReason.schemaReset (cache written by a newer SDK version, e.g. after an app rollback, rebuilt; not encryption-related), and a switch without default must handle it.
  • reactions, offline-cached-data, offline-reference: ReactionsRequest.fetchPrevious() takes an optional ReactionFetchListener (cached first, then server).
  • offline-send, offline-media-caching: a media send over the media budget first evicts least recently used cached media; it is refused with byteOverflow only if the file (or, for a message with several files, the files together) still cannot fit. Media of queued messages does not count toward the budget.
  • offline-reference: a fetchNext() on ConversationsRequest / BlockedUsersRequest started while one is loading completes at once with an empty list.
  • setup, overview: the package is WASM-compatible on Flutter web since 5.1.2.
  • offline-enable, setup, overview, upgrading-from-v4-guide: example pin ^5.1.2 (recommended; Flutter UI Kit 6.4.0 requires it). The 5.1.0 minimum is unchanged.

Flutter UI Kit 6.4.0 (from #630)

  • New page ui-kit/flutter/offline-support.mdx: requirements, enabling with UIKitSettingsBuilder.offlineConfig, how each component behaves offline, the offline texts and the 22 new Translations strings (breaking for apps that implements Translations), errors and callbacks, customization, what changes with offline off, and limitations. Added to the nav after Core Features.
  • Short offline notes on Conversations, Message List, Message Composer, Threaded Messages Header, Core Features, Events, Localize, Methods, Getting Started, Overview and the LLM index.
  • Pin and save guide: the acting device updates from onSuccess.
  • UI Kit dependency pins bumped from ^6.3.0 to ^6.4.0.

#628 was approved by Ketan and Review Buddy; its review points (the media budget wording, byteOverflow for several files, the pin-conversation sentence order) are in. mint broken-links reported only the existing CONTRIBUTING.md link on #630.

🤖 Generated with Claude Code

adityagokula2210 and others added 4 commits November 24, 2026 01:22
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add an Offline Support page for the Flutter UI Kit: requirements, how to
enable it with UIKitSettingsBuilder.offlineConfig, how each component
behaves offline, the offline texts and the 22 new Translations strings,
errors and callbacks, customization, and what changes with offline off.
Add short offline notes to the component, events, localize, methods,
core features, getting started and overview pages, update the pin and
save guide for the onSuccess update, and bump the UI Kit pins to ^6.4.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
cometchat 🟢 Ready View Preview Nov 24, 2026, 12:07 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@ketanyekale ketanyekale left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of the Flutter 5.1.2 / 6.4.0 docs: 2 things to fix before merge (the second-fetchNext() empty-list rule, and the UI Kit 6.3.0 to SDK 5.1.2 upgrade risk), plus a few nits. Anchors and cross-page links I checked all resolve.

Comment thread sdk/flutter/offline-reference.mdx Resolved
Comment thread sdk/flutter/pin-message.mdx Resolved
Comment thread sdk/flutter/real-time-listeners.mdx Resolved
Comment thread ui-kit/flutter/offline-support.mdx Resolved
Comment thread ui-kit/flutter/offline-support.mdx Resolved
- State the overlapping fetchNext() empty page as the one server-phase
  exception, name its callback, and warn it is not the end of the list.
- Warn that flutter pub upgrade moves UI Kit 6.3.0 apps to SDK 5.1.2,
  and how to avoid the pin/save regression.
- Mark the acting-device listener change as since v5.1.2.
- Clarify failedIconColor and the UI Kit's Dart/Flutter patch floor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Conversations: own pins update from onSuccess since SDK 5.1.2;
  added to the offline page's pin and save section.
- Offline support: messages sent with CometChat.send*Message directly
  get no unsent row in the message list.
- Localize: lead with CometChatLocalize; Translations is deprecated.
- Troubleshooting: add an Offline Support section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dart run cometchat_sdk:setup_web downloads the sqlite3.wasm and
drift_worker.js the offline database needs on Flutter web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
raj-dubey1
raj-dubey1 previously approved these changes Nov 24, 2026
ketanyekale
ketanyekale previously approved these changes Nov 24, 2026

@ketanyekale ketanyekale left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed up to d92c8c3. All five points from my earlier review are fixed: the overlapping-fetchNext() exception in offline-cached-data, the reference and both Offline Behaviour sections; the UI Kit 6.3.0 pub upgrade Warnings; "since v5.1.2" on the listener rows and notes; the failedIconColor description; and the Dart/Flutter minimums. The follow-ups (conversation pins from onSuccess, direct CometChat.send*Message getting no unsent row, the setup_web step, the troubleshooting section) look right, and anchors and link-rot pass. Approving.

Two optional nits, not blocking:

  • ui-kit/flutter/localize.mdx: the "Customizing UI Kit Translations" snippet now calls runApp(const MyApp()), but its only import is the UI Kit. It needs import 'package:flutter/material.dart'; to compile as pasted.
  • sdk/flutter/save-message.mdx: the new <Warning> sits inside the existing <Note>, so it renders as a callout inside a callout. Moving it after </Note> would match pin-message and pin-conversation.

I haven't checked the new CometChatLocalize API (supportedLocales, localizationsDelegates, registerTranslations) against the 6.4.0 package source; I'm relying on your check there.

jitvarpatil
jitvarpatil previously approved these changes Nov 24, 2026

@jitvarpatil jitvarpatil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed against the packages published on pub.dev (cometchat_chat_uikit 6.4.0 and cometchat_sdk 5.1.2). Approving: nothing blocks the merge.

Checked and fine

  • Every navigation entry resolves; the new page sits after Core Features. No pages removed or renamed, so no redirects are needed. No broken links or #section anchors in the changed pages.
  • The localization API matches the 6.4.0 package (the part not checked before): CometChatLocalize has delegate, localizationsDelegates, supportedLocales, of(context) and registerTranslations(...); CometChatLocalizations is typedef CometChatLocalizations = Translations; Translations is @Deprecated; the changelog lists CometChatLocalize under v6.3.0.
  • All 22 new getters and their English texts in both tables (localize.mdx, offline-support.mdx) match the package, including the plural forms, and every built-in language has them.
  • Other API names exist: UIKitSettingsBuilder.offlineConfig, initFromSettings(offlineConfig:), hideOfflineNotices (Conversations, Message List), notSentTextStyle / failedIconColor, ccMessageSendStateChanged, ccOfflineCacheReset, CometChatMessageSendState, sendStateOf(BaseMessage), hideError (Conversations, Groups, Group Members); in the SDK OfflineCacheResetReason.schemaReset, ReactionsRequest.fetchPrevious({..., ReactionFetchListener? listener}), CometChat.isOfflineEnabled() (a plain bool, as in the example) and the setup_web script.
  • Versions match the pubspecs: UI Kit 6.4.0 needs cometchat_sdk: ^5.1.2, Dart 3.10.8+, Flutter 3.38.9+; the SDK alone needs Dart 3.10.0 / Flutter 3.38.0.
  • The pin/save callback change and the 6.3.0 pub upgrade warning read the same on every page.

Nits (Ketan's two optional points, still open at d92c8c3)

  1. ui-kit/flutter/localize.mdx, "Customizing UI Kit Translations": the snippet calls runApp(const MyApp()) but only imports the UI Kit; add import 'package:flutter/material.dart';.
  2. sdk/flutter/save-message.mdx: the new <Warning> is inside the existing <Note>; move it after </Note> to match pin-message and pin-conversation.

- localize: add the Flutter material import the custom-translations snippet needs for runApp.
- save-message: close the Note before the UI Kit 6.3.0 Warning, matching pin-message and pin-conversation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@raj-dubey1 raj-dubey1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at Aditya Gokula's request on Slack. This approval was given on request; no code review was done for it.

@jitvarpatil jitvarpatil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed up to 92d717f. Both nits are fixed and nothing else changed:

  1. ui-kit/flutter/localize.mdx: the "Customizing UI Kit Translations" example now imports package:flutter/material.dart, so runApp(...) compiles as pasted.
  2. sdk/flutter/save-message.mdx: </Note> now closes before the <Warning>, so they render as two separate callouts, as on pin-message and pin-conversation.

My earlier checks against the published cometchat_chat_uikit 6.4.0 and cometchat_sdk 5.1.2 packages still apply. Approving.

@ketanyekale
ketanyekale merged commit a2cb09a into main Nov 24, 2026
5 checks passed

@ketanyekale ketanyekale left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed up to 92d717f. Both optional nits are fixed and nothing else changed: the localize override example imports package:flutter/material.dart, and in save-message the </Note> now closes before the Warning. Link-rot passes. Approving again, since the push dismissed my earlier approval.

This branch was successfully deployed

1 active deployment
staging — 92d717f9 Deployed Nov 24, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants