Skip to content

Latest commit

 

History

History
110 lines (65 loc) · 4.09 KB

README.md

File metadata and controls

110 lines (65 loc) · 4.09 KB

Situm Flutter Example

A sample Flutter application to start learning the power of Situm Flutter Plugin.

License: MIT Pub Version Flutter

What's in here

This folder contains the necessary source code for an example application using the Situm Flutter plugin.

home_preview wyf_preview

How to run the app

Step 1: Install the dependencies

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

iOS only

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.

Step 2: Set up your Situm credentials

This example provides you with a template on lib/config.dart.example:

Warning Rename config.dart.example to config.dart.

Now populate it with your credentials:

const situmApiKey = "YOUR-SITUM-API-KEY";
const buildingIdentifier = "YOUR-SITUM-BUILDING-IDENTIFIER";

Step 3: Run the app

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.

Documentation

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.

Examples

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:

  1. 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).

Versioning

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.

Submitting Contributions

You will need to sign a Contributor License Agreement (CLA) before making a submission. Learn more here.

License

This project is licensed under the MIT - see the LICENSE file for details.

More information

More info is available at our Developers Page.

Support information

For any question or bug report, please send an email to [email protected]