Flutter SDK overview

Two packages, one client, a handful of widgets. What each part does and how they fit into an app.

PackageContentsDepends on
kletso_ui_schemaJSON schemas, fixtures and Dart models for kletso.ui/v1, kletso.events/v1 and the realtime framesmeta
kletso_coreKletsoClient: sessions, conversations, transports with reconnect and replay, context, events, notifications, push handoff, KletsoComponentSpec, the fake backendhttp, web_socket, clock
kletso_flutterWidgets: KletsoChat, KletsoLauncher, KletsoSurfaceView, KletsoNotificationHost, 30 built-in blocks, KletsoTheme, the component and action registries, kletso_flutter:syncflutter, kletso_core

Apps depend on kletso_flutter (which brings the others). All three are pure Dart with no platform channels, so they run wherever Flutter runs, including Wasm.

The pieces you touch

Kletso.init(KletsoConfig(...))          → KletsoClient (Kletso.instance)
  ├─ identifyAnonymous() / authenticate(token:)
  ├─ setContext / updateContext / track / screen
  ├─ registerComponent(type, builder, spec:)     your widgets for surface blocks
  ├─ registerAction(name, handler)               your handlers for local actions
  ├─ onOpenUrl, onSystemNotification, setHostData
  ├─ messages / conversations / connection / session / events / notifications
  └─ open(context) / close()

Widgets: KletsoLauncher · KletsoChat · KletsoSurfaceView · KletsoNotificationHost · KletsoConversationList
Theme:   KletsoTheme.light/dark/fromServer as a ThemeExtension

Reading order

  1. Installation and initialisation: config fields, identity, context.
  2. Chat UI and theming: launcher, sheet or full screen, embedding, brand theme, dark mode.
  3. Custom components: specs, builders, sync.
  4. Actions and app commands: local handlers, URL policy, server-initiated commands.
  5. Host data bindings.
  6. Notifications and push.
  7. Connection, offline and replay.
  8. State, streams and errors.
  9. Testing with the fake backend.
  10. Platform notes.

Last updated 2026-09-28 · Report an issue with this page