widgets library
ClarioDesk pre-built UI — drop-in support chat + bug-report screens.
Import this second entry point only when you want the pre-built screens;
hosts that build their own UI import package:clariodesk/clariodesk.dart
(headless) and never pay for the widget code (it tree-shakes out).
import 'package:clariodesk/clariodesk.dart';
import 'package:clariodesk/widgets.dart';
await ClarioDesk.init(apiKey: 'pk_live_…');
// …later, from a button:
ClarioDeskWidgets.openInbox(context);
Theming derives from the host colorScheme by default; override with
ClarioDeskTheme (~12 tokens) and copy with ClarioDeskStrings.
Classes
- CdAcceleration
-
Minimal accelerometer sample the host maps its sensor package's event onto,
so the SDK never depends on any specific sensor plugin's types. Units are
m/s² including gravity (the
sensors_plusconvention). - ClarioDeskShakeDetector
- Wraps child and opens the bug-report form when the host-provided accelerometer events stream reports a shake.
- ClarioDeskStrings
- ClarioDeskTheme
-
Host-facing theme overrides. Pass to
ClarioDeskWidgets.openInbox(theme:). All fields optional — the unset ones inherit from the hostcolorScheme, so a zero-config install already matches the host app (incl. light/dark). - ClarioDeskWidgets
-
The host's one-line surface. Call after
ClarioDesk.init(...).