THI AR Flutter Widget

Augumented Reality flutter plugin for THI Product Augumented Reality Experience. This was implemented with ar_flutter_plugin. It has been tested only on Android so far.

Installation

Android

Due to this issue flutter/flutter#103630, you have to use this plugin in the lastest beta version of flutter. This woundn’t be required in the next stable version of flutter.

Make sure your compileSdkVersion version is set to 33 in your android/app/build.gradle file.

    android {
        compileSdkVersion 33
        // .....
    }

Also set the minSdkVersion to 24 in your android/app/build.gradle file.

    android {
        //...
        defaultConfig {
            minSdkVersion 24
            // ....
        }
    }

You can then install the plugin by adding it to your dependencies in your pubspec.yaml file.

thi_ar_viewer_widget:
    git: https://github.com/funabab/thi_ar_viewer_widget.git

Example

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return THIARViewerWidget(
        jwtToken: "__VALID_JWT_TOKEN__",
        modelId: "__VALID_MODEL_ID__"
    );
  }
}

GitHub

View Github