Flutter integration
Integrating Appfigurate Library into a Flutter app
For simplicity, this guide will assume your Flutter app deploys to both iOS (Swift) and Android (Kotlin).
Prerequisites
You must have the following installed:
Android Studio, IntelliJ or Visual Studio Code.
Flutter 3.41.4+ SDK
Xcode 26+
iOS SDKs and associated Simulators.
AppfigurateSE macOS app.
Appfigurate Simulator app installed into one or more iOS Simulators (use the AppfigurateSE macOS app for easy one-click installation).
Your iOS app must target iOS 15.0+ in order to include Appfigurate Flutter Plugin.
Modify pubspec.yaml
In your app's pubspec.yaml add the following to the dependencies section:
appfigurateflutter: ^5.0.0Perform a pub get to ensure the Appfigurate Flutter Plugin is successfully installed.
Update main.dart
In your apps main.dart file, initialize the Appfigurate Flutter Plugin:
main.dartinitialization example
Create Dart APLNativeConfiguration subclass
In your app, add a new Dart class named Configuration.dart. Paste the following code:
Dart Configuration example
You can now use the Configuration class throughout your Flutter app as follows:
Now jump to Flutter iOS.
Last updated