Flutter Plugin 3.0.0
Introduction
At the very beginning, you need to make sure that you have access to Onegini SDK. If you don't have a login and password please contact us.
Add the plugin to your project
To start using the plugin, you will need to follow a few simple steps:
- Open pubspec.yaml file in your project
- Add dependency
- Onegini: ^x.y.z
. - Run
flutter pub get
command.
And that's all, the plugin is ready to go. Now you need to configure your native project for OneWelcome Plugin to start work.
Configure your project
The details about plugin configuration can be found in the Configuration guide.
Initialize OneWelcome Flutter Plugin
To start working with the plugin, we need to initialize OneWelcome Plugin by calling startApplication method.
Example code to initialize the plugin:
Example
Download manually the plugin and example-app here. The Example app can be found int the example
folder. Other steps are the same as for package integration, instead, you don't need to modify pubspec.yaml
.