Install Sahha SDK for Flutter

Learn how to integrate the Sahha SDK into your Flutter project.


Step 1) Add Flutter Package Dependency

Add sahha_flutter as a dependency in your pubspec.yaml file.

View Sahha Flutter SDK on PubDev

yaml
dependencies:
flutter:
sdk: flutter
sahha_flutter:
git:
url: git://github.com/sahha-ai/sahha_flutter.git

Step 2) Install Flutter Package

Run flutter pub get inside the root folder of your Flutter project.

shell-session
$ flutter pub get

Step 3) Setup iOS Project

Follow these additional steps to install the Sahha SDK in your iOS project.

Install CocoaPods

You will need to install CocoaPoads before you can install the Sahha SDK to your iOS project.

Visit Cocoapods to learn how to install CocoaPods.

Install Sahha Pod

Run pod install from the Terminal app in your project root folder.

shell-session
$ pod install

Step 4) Import Sahha Package

Import the sahha_flutter package into any files inside your Flutter project that use the SDK.

dart
import 'package:sahha_flutter/sahha_flutter.dart';

Next Steps

Continue to Step 3.) Configure Settings to configure the Sahha SDK.

Previous
Android