Before I file a bug I wanted to run this by the group here to see if I'm missing something obvious.I'm having trouble getting the correct screen size or the correct size of widgets from the build context. I'm aware of this thread:
https://groups.google.com/forum/#!searchin/flutter-dev/RootWidget/flutter-dev/s4hUn1-ZFL8/YHRmHp29CQAJWhen I reduce my app to just the CustomPaint suggested in the thread above it reports the size as 360.0 x 592.0. This is the same as is reported when I do a MediaQuery on widgets at various levels of my widget hierarchy, including the top level route. And the same as reported when I dump the render tree.The actual resolution of my device is 1080.0 x 1920.0. Flutter seems to render everything as expected despite the unexpected size. The problem is that I need the real size for some of my algorithms and have been unable to find a way to get it.
A - can anyone point out to me what might cause this situation? Is this a general flutter bug or a bug on certain devices? Is there something I should be doing to force my app to fit the screen logically as well as visually (docs say the root widget is supposed to do this automatically)?
B - It'd be great, IMO, for developers if there were streamlined ways to get the screen and or root widget and its context/data
Before I file a bug I wanted to run this by the group here to see if I'm missing something obvious.I'm having trouble getting the correct screen size or the correct size of widgets from the build context.