Skip to Content
PlatformsFlutter

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 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

The Flutter SDK is published to pub.dev as shenai_sdk.

flutter pub add shenai_sdk

The package resolves the Android SDK from Maven Central and the iOS SDK from CocoaPods during the native build.

Custom 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);

CustomFrames in Flutter only configures the session. The Flutter binding does not provide a raw frame-submission API, so frames must be submitted from native Android/iOS code through the native SDK APIs documented on the Android and iOS pages.

Further steps

Please see permissions, initialization, configuration and video measurement for further steps.