In‑App Chat Widget (Flutter) — Quick Start

This guide shows how to embed the klink.cloud Web Chat Widget inside your iOS/Android Flutter app using webview_flutter.

Replace YOUR_SCID_HERE with the scId from klink.cloud → Settings → Message Integration → Web Chat Widget → Install Code.

1) Choose a widget URL (3 UI options)

Pick the design that fits your mobile app:

  • Show Header https://chat.klink.cloud/app/index.html?scId=YOUR_SCID_HERE&showHeader=true

  • Hide Header https://chat.klink.cloud/app/index.html?scId=YOUR_SCID_HERE&showHeader=false

  • Chat Bubble Widget https://chat.klink.cloud/app/index.html?scId=YOUR_SCID_HERE&view=widget

2) Add dependencies

pubspec.yaml

Run:

3) iOS & Android minimal setup

Androidandroid/app/src/main/AndroidManifest.xml

iOSios/Runner/Info.plist (only if your chat needs camera/mic)

4) Drop‑in WebView widget

Create lib/klink_chat.dart and paste:

5) Where to add it (developer‑friendly)

Use the widget on any screen or inside a bottom sheet.

A. Full‑screen chat page

B. Slide‑up sheet (keeps user in current screen)

6) (Optional) Pass user identity

If your workspace enables identifying app users, append params you support (example):

For signed SSO (HMAC/TTL), follow your workspace’s security instructions and add the signature/timestamp params you require.

7) Quick checklist


That’s it. Your Flutter app now embeds the klink.cloud chat widget with your chosen design (header on/off or chat bubble).

Last updated