Flutter
Embedding TutAR 3D viewer in a Flutter app
Prerequisites
This guide expects a basic Flutter knowledge
Get a Connect3D Vendor Account from TutAR by sending a mail at <[email protected]>.
Generate an API key from the Connect3D dashboard
The 3D viewer can be embedded into a Flutter app using a web view, here we are using flutter_inappwebview as an example but it can be replaced with any web view library of your choice.
Getting User Permissions
In order to enable the AR functionality, Make sure to take camera permission from the user.
<manifest>
<!--
rest of the code
-->
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.webkit.PermissionRequest" />
<uses-permission android:name="android.permission.INTERNET" />
<manifest>Embedding the Viewer
Render the webview component. mediaPlaybackRequiresUserGesture and allowsInlineMediaPlayback are the required options.
Last updated