ResponsiveFramework
ResponsiveFramework copied to clipboard
Get Render Object Position/Offset is not Match with UI
Step to reproduce:
- add global key in widget (in this case I use icon bell)
- call this in some function to get offset of the widget
RenderBox? box =
key.currentContext?.findRenderObject() as RenderBox?;
Offset? position = box?.localToGlobal(Offset.zero);
- showing custompaint based on current offset of the widget
Actual Result:
the draw paint not match with the current UI/widget,

Expected Result:
the draw paint should match with the current UI/widget,