CariusLars / ar_flutter_plugin

Flutter Plugin for AR (Augmented Reality) - Supports ARKit on iOS and ARCore on Android devices
MIT License
318 stars 229 forks source link

How to find position of Node with in the screen #138

Open infocodiste opened 1 year ago

infocodiste commented 1 year ago

Hi All,

Is there any way to find out the x y position of Node with respect the screen Or is there a way to know the left, right, top & bottom of the screen for ARNode.?

RenderBox of any widget by using key and get the position of the widget like this:

Container(
           key: _key,
           color: Colors.red,
         ),
 final RenderBox renderBox = _key.currentContext.findRenderObject();
    final position = renderBox.localToGlobal(Offset.zero);

Here is an example of Widget and I want a position of ARNode.