getWidgetPosition function
Implementation
Offset getWidgetPosition(GlobalKey key) {
RenderBox box = key.currentContext!.findRenderObject() as RenderBox;
return box.localToGlobal(Offset.zero);
}
Offset getWidgetPosition(GlobalKey key) {
RenderBox box = key.currentContext!.findRenderObject() as RenderBox;
return box.localToGlobal(Offset.zero);
}