Flutter
Integrating Eartho into Your Flutter App
This section describes how to integrate Eartho into a Flutter app.
1. Install the SDK
You can install the SDK using the Flutter package manager.
Using Flutter package manager:
2. Retrieve Eartho Client ID, Client Secret, and Access ID
Go to Eartho Creator and copy your Eartho client ID, client secret, and access ID from the "Developers Integration" section.
3. Configure URL Scheme for iOS
Open your Flutter project in Xcode.
Go to the project settings and select your app target.
Go to the
Info
tab and add a new URL type:Identifier:
eartho
URL Schemes:
$(PRODUCT_BUNDLE_IDENTIFIER).one.eartho.world
Example:
4. Initialize and Configure the SDK
Integrate Eartho into your Flutter app by configuring the SDK and handling authentication.
Example Code:
main.dart
Add the following code to initialize and handle authentication in your app.
Additional Resources
For more detailed examples and usage, visit the Eartho Flutter Example Repository.
Last updated