Is there a way to get the actual value of screen DPI in Flutter (Dart)??
I need that value to calculate many other stuffs, and so it's not enought for me to use integrated Flutter features about responsiveness.
I really need a raw DPI value.
I mean for example like:
MediaQuery.of(context).dpi //but it doesn't exists
Thank you so much
Thank you, but I already knew about ctrl+space and I already knew about MediaQuery.of(context). devicePixelRatiobut unfortunately it's value is not what I'm actually looking for.I give you an example:
MediaQuery.of(context). devicePixelRatio = 2.625 (in my device)
but I'm looking for a value that is tipically greater than 100 like 420dpi... so how you can see those values are quite differents
Il giorno martedì 12 novembre 2019 11:50:32 UTC+1, Reme Le Hane ha scritto:MediaQuery.of(context).deviceP ixelRatioYou were like right there, ctrl+space would have brought up a list of options on MediaQuery.of(context).On Tuesday, 12 November 2019 12:24:36 UTC+2, Luca Dal Poz wrote:Is there a way to get the actual value of screen DPI in Flutter (Dart)??
I need that value to calculate many other stuffs, and so it's not enought for me to use integrated Flutter features about responsiveness.
I really need a raw DPI value.
I mean for example like:
MediaQuery.of(context).dpi //but it doesn't exists
Thank you so much