After seeing a new augmented reality plugin based on Apple’s ArKit, I decided to create a plugin based on Google’s ARCore: ARCore Flutter Plugin
You can see any examples on my Twitter’s profile.
What can you do with this plugin (for now)?
- add a node positioned according to the position of the camera
- add a node anchored to an automatically detected plan
- add a shape to a node
- add a style to a shape (color, reflectance, roughness, metallic)
- add a texture to a shape
- add a rotating node
- add node with children nodes
- detect a plane
- detect the tap on a node
- detect the tap on a detected floor
- remove a node
I will write a series of articles to show how to use the plugin:
- ARCore Flutter Plugin: configurations.
- ARCore Flutter Plugin: add object on the plane
Let’s start with the project configurations.
In this section we will configure our app to work with ARCore Flutter plugin. First of all create a new Flutter application.
If you are reading this article you already know how to create a flutter application so let’s move on to the configuration to use the plugin.
Add this to your package’s pubspec.yaml file:
Add AR Required or AR Optional entries to manifest
You can see this for more information or continue with these standard step.
Add this entries in AndroidManifest.xml:
Add build dependencies
Make sure your project’s build.gradle file includes Google's Maven repository:
Add the latest ARCore and Sceneform libraries as a dependencies in your app’s build.gradle file:
Add this properties in gradle.properties file:
Now we are ready for use ARCore Flutter Plugin.
Go to the next article to add your first 3D object in the real world!