Closed xErik closed 10 months ago
Hi @xErik If u use mediaQueryData in your app, then please scale ur mediaQueryData on top of your app Otherwise, MediaQuery.of(context) will give u the original MediaQueryData before scaling
Thank you, I believe I understand.
Only in case I use my own MediaQuery, I have to use this construct to get the overall scaling right:
MediaQuery(
data: MediaQuery.of(context).scale(),
child: Scaffold( ... )
)
Maybe that would be a good point for the documentation?
Thank you!
Flutter (Channel stable, 3.13.2)
Thank you for the package, it works very well in my case.
I initialize the package as follows:
But the code below seems not to be necessary when developing using local Chrome. Everything is already correctly scaled.
Is that just a local quirk and is the code indeed necessary? Or is that the legacy way of using the package? Or did I misread the docs and this code was never necessary?
Thanks you!