Augmented reality app in the Flutter

Updated 11 December 2023

Save

The augmented reality app in Flutter is one of the most popular technologies which provides a mechanism to show a virtual object in a physical atmosphere.
So, in this tutorial, you will learn the below points.

You may also explore our Flutter app development page.

AR Core

Augmented reality core platform provided by Google to create the argument reality app in Flutter.

And AR core provides the APIs for the Android argument reality app in Flutter.

So, as per Google AR documentation, ARCore is doing two things: tracking the position of the mobile device as it moves and building its own understanding of the real world.

AR Kit

AR kit only works for iOS apps and this platform is provided by Apple.

And AR kit provides the APIs for the iOS argument reality app in Flutter

As per Apple AR kit documentation, ARKit combines device motion tracking, camera scene capture, advanced scene processing, and display conveniences to simplify the task of building an AR experience.

You can create many kinds of AR experiences with these technologies using the front or rear camera of an iOS device.

AR core configuration for Android

To configure the AR core for Android follow the below points.

So, add the AR optional and AR required entries to the manifest file.

AR required->

An AR Required app cannot function without ARCore. It requires an ARCore supported device that has installed Google Play Services for AR.

Need to add the following entries in AndroidManifest.xml.

AR optional->

An AR Optional app uses ARCore to enhance existing functionality. It has optional AR features which are only activated on ARCore-supported devices that have installed Google Play Services for AR.

Modify build.gradle->

So Add the below codes in the project level build gradle file.

Add the below codes in app level build gradle file.

So Add the sceneform plugin in app level build gradle.

AR kit configuration in iOS

In case of any permission issues please use the below code in the pod file.

Plugin installation

Please follow this blog for plugin installation.

Making 3D object example

In the below code, you have got separate iOS and Android code classes.
We are making the sphere object.

AR in Android
AR in iOS

Conclusion

In this tutorial, you have learned about how to create an augmented reality app in a flutter.

So pls follow the above step and if you have any issues or suggestions you can leave your message in the comment section we will try to solve this.

You can read more interesting blogs by Mobikul.

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project


    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home