Flutter SDK
Using our Flutter SDK makes it easy to integrate Shen.AI into a new or existing cross-platform (iOS and Android) Flutter app.
The best way to get started is to download and build the example app - available here on GitHub . The example provides easy customization to kickstart creating new apps with the SDK.
Installing the SDK package
To start working with the SDK, you’ll need to download the SDK package and extract it somewhere in your flutter codebase. The SDK is packaged as a Flutter Plugin that you can reference locally in the filesystem (as opposed to the public registry).
Specify the relative path to the extracted SDK in pubspec.yaml
dependencies:
...
shenai_sdk:
path: ./shenai_sdkCustom frame input
Flutter exposes CameraMode.customFrames, so you can configure the SDK not to start a camera:
final settings = InitializationSettings()
..cameraMode = CameraMode.customFrames;
await ShenaiSdk.initialize(API_KEY, USER_ID, settings: settings);Further steps
Please see permissions, initialization, configuration and video measurement for further steps.