Skip to main content
The Klaritics Flutter SDK follows the same conventions as the Web and Android SDKs. It provides a Dart API that delegates to the native platform layers, so you can initialize and log events from Dart while the SDK handles Android and iOS specifics. Packaging and installation follow standard Flutter conventions.

Installation

Add the dependency to your pubspec.yaml:
Replace x.x.x with the latest version number. Then run:

Initialization

Import the SDK and initialize it with your app_id and server_host before logging any events:
The SDK will not initialize until both values are provided.

Logging events

User and session management

Important naming note

The client-facing class is Klaritics. Do not use KlariticsSDK, KlariticsCore, or any other variant in your application code.