Skip to main content

Embed SDK Flutter

What is Flutter?

Flutter is Google's UI toolkit for building beautiful, natively compiled applications for mobile, web, desktop, and embedded devices from a single codebase.

XR-MOD with Flutter

In the past, to use AR-MOD sdk in Flutter, developers need to create AR-MOD plug-ins for Flutter projects, so that Flutter can use AR-MOD! We also found this problem, so we launched a plug-in that fully supports Flutter in version 0.0.4. We pushed it to and the name is flutter_armod_widget. From now on I will lead you to see how to use AR-MOD SDK in Flutter.


We will skip how to install flutter and how to create a project with flutter

Setup Flutter project

Step 1

Open the pubspec.yaml file and write the flutter_armod_widget: ^2.0.0-pre.1 to dependencies .

sdk: flutter
flutter_armod_widget: ^2.0.0-pre.1

Step 2

Run the flutter pub get command in your project's termial to install the dependencies.

Step 3

Download and unzip the AR-MOD SDK Framework from github.

Go to the location of FLUTTER-SDK-PATH/.pub-cache/hosted/ folder, then paste the libs to android platform folder.

Step 4

  • Run Flutter pub get command in your termial again.
  • Create and write your app token to PhantomsXRConfig.dart.
  • And write a new screen for AR-MOD.

Build and Test


No additional configuration required

OK, you just need to run flutter run --release command in the terminal. An AR app will be run in your phone! Click here to download this source code!