'What is the difference between globalposition and localposition in flutter?

Somehow I'm getting same values for both, I'm not able to understand the difference between global and local position in flutter.

RenderBox getBox = context.findRenderObject();
Offset position = getBox.localToGlobal(Offset.zero);
var local = getBox.globalToLocal(update.globalPosition);


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source