Skip to main content
The Flutter SDK is the kravata_sdk_plugin package. It exposes KravataWebView, a full-screen widget that you push onto your navigation stack.

Requirements

Install

1

Add the dependency

The package is distributed from a private GitHub repository. Add it to pubspec.yaml with the GitHub token Kravata gives you and the version tag you want to use:
pubspec.yaml
Then run:
Don’t commit the token to your repository. In CI, inject it from a secret, or configure Git credentials for github.com and drop the token from the URL.
2

Allow network access on Android

Add the Internet permission to android/app/src/main/AndroidManifest.xml:
iOS needs no extra permissions.

Open the widget

Import the widget and push it with Navigator.push. Get sharedKey, nonce and clientId from your backend first (see Issue a widget session).

Parameters

Next steps

Backend integration

Issue widget sessions, receive user.accepted_terms and register the user.

Overview

Environments, credentials and the end-to-end flow.