Flutter and AR

Getting started with Augmented Reality in Flutter using ARCore

What Is Augmented Reality?


Code Snippet

import 'package:flutter/material.dart';
import 'package:vector_math/vector_math_64.dart' as vector; import 'package:arcore_flutter_plugin/arcore_flutter_plugin.dart'; import 'package:http/http.dart' as http;
ArCoreController arCoreController;
body: ArCoreView(                                 enableTapRecognizer: true ,                               onArCoreViewCreated: _onArCoreViewCreated,                             ),
_onArCoreViewCreated(ArCoreController _arcoreController){
this.arCoreController = _arcoreController;
this.arCoreController.onNodeTap = (nodes) =>onNodeTapHandler(nodes);_addCyclinder(arCoreController);_addSphere(arCoreController);
void onNodeTapHandler(String name) {                      print(name);
url = "$name";
var res = http.get(Uri.encodeFull(url));
Line 55 — gives a custom name for the node
check line 79

Connecting the dots and rest is magic. https://ayedaemon.github.io/