A sample Flutter application to start learning the power of Situm Flutter Plugin.
This folder contains the necessary source code for an example application using the Situm Flutter plugin.
The first step is to download this repo:
git clone https://github.com/situmtech/flutter.git
And then install the plugin dependencies alongside the example
app as follows:
cd flutter/example
flutter pub get
Run pod install
or pod update
from the example/ios
folder to bring the dependencies to your project.
Also check out the project code signing before you run the example.
This example provides you with a template on lib/config.dart.example
:
Warning Rename
config.dart.example
toconfig.dart
.
Now populate it with your credentials:
const situmApiKey = "YOUR-SITUM-API-KEY";
const buildingIdentifier = "YOUR-SITUM-BUILDING-IDENTIFIER";
From the example
folder, execute the following command which works on both Android and iOS devices:
flutter run
You can also run the app from your IDE:
- On Android: open
example/android/
with Android Studio. - On iOS: open
example/ios/Runner.xcworkspace
with XCode.
More information on how to use the official Flutter plugin and the set of APIs, the functions, parameters and results each function accepts and provides can be found in our SDK API Reference and Wayfinding API Reference.
In case you want to learn how to use our plugin, you may want to take a look at our code samples of the basics functionalities:
- Basic SDK and Wayfinding functionality: showcases how to initialize the Situm SDK (refer to the flutter sdk quickstart guide for more information) and how to use some basic features like positioning and obtaining the information of a given building. It also shows how to use the Situm Wayfinding module (refer to the flutter wayfinding quickstart guide for more information).
We use SemVer for versioning.
Please refer to CHANGELOG.md for a list of notables changes for each version of the library.
You can also see the tags on this repository.
You will need to sign a Contributor License Agreement (CLA) before making a submission. Learn more here.
This project is licensed under the MIT - see the LICENSE file for details.
More info is available at our Developers Page.
For any question or bug report, please send an email to [email protected]