Let's say I have a container with a transform applied to it. Because of the transform it's drawn to a slightly shifted position on screen (while its layout position remain the original one, without the transform).
Eg: Here I have two containers in a stack. Blue one is without transform. And red one is with transform.
https://dartpad.dev/?id=5fc0a808ea606a97216bb06df0824b77&null_safety=true
How do I determine actual position of red one on screen? Since transform is applied at the paint time (not layout time), the usual ways of getting renderobject and using it to obtain position relative to ancestor doesn't work. It just gives same rect for both.
Blue Rect Rect.fromLTRB(0.0, 0.0, 400.0, 400.0)
Red Rect Rect.fromLTRB(0.0, 0.0, 400.0, 400.0)
Is there any way to get the actual position of red/transformed widget relative to ancestor/screen?