Quick Start
Get Started with the Hyphen Flutter SDK
Create an App in the Dashboard
You need to create an app in the Hyphen Dashboard before using Hyphen SDK. After creating an app, an app secret will be issued. The app secret is required to initialize the SDK.
Installing the SDK
Open your project's
pubspec.yaml
file.Add Dependency: Under the
dependencies
section of yourpubspec.yaml
file, add the "hyphen_flutter_sdk" plugin as follows:
Replace ^1.0.0
with the desired version of the plugin. The ^
symbol indicates that your project can use any compatible version greater than or equal to the specified version.
Run
flutter pub get
: After adding the dependency, save thepubspec.yaml
file, and run the following command in your terminal to fetch the plugin:
This command will download the plugin and its dependencies into your Flutter project.
Initializing the SDK
Initialize the Hyphen SDK within your Flutter app's main.dart
file or in the initialization code of your Flutter app. Here's an example of how you might initialize the SDK:
Last updated
Was this helpful?