Supported platforms
Installing the Gleap SDK
-
Navigate to the
Custom Codesection in FlutterFlow and create a newCustom ActioncalledgleapInitialize. - Add the latest Flutter Gleap SDK as a dependency, then refresh the code editor to load the pubspec dependencies.
-
Copy and paste the following code to initialize Gleap, replacing
'YOUR_API_KEY'with your actual API key, and save the configuration:

Web Installation
For web support, go toApp Settings > Web Deployment, and paste the following script into the Custom Headers section:

SDK Configuration
To configure the SDK, navigate tomain.dart under Custom Files, and add the newly created gleapInitialize function to the Final Actions section. Save the configuration.

Data region
Gleap stores and processes your data in the region you selected at signup: EU (default) or US. FlutterFlow uses the Flutter Gleap SDK, so if your project lives in the US region, select the region in yourgleapInitialize custom action before Gleap.initialize (requires gleap_sdk v18.0.0 or newer). EU projects don’t need this call.
Run your app
Deploy and run your app to experience Gleap in action.
Utilizing the Gleap SDK
You can utilize all the features provided by the Flutter Gleap SDK by creating custom actions for each method. For more information on configuration options, visit the Flutter Gleap documentation.