ResponsiveFramework icon indicating copy to clipboard operation
ResponsiveFramework copied to clipboard

Get Render Object Position/Offset is not Match with UI

Open irufano opened this issue 3 years ago • 0 comments

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, Screen Shot 2022-05-25 at 18 40 42

Expected Result:

the draw paint should match with the current UI/widget,

irufano avatar May 25 '22 11:05 irufano