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.
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:
Here is an example of Widget and I want a position of ARNode.