How to get the screen's (or pixel's) physical width and height in flutter? is it possible?
I need to display exactly 1 cm on different screens programaticly
Thanks.
How to get the screen's (or pixel's) physical width and height in flutter? is it possible?
I need to display exactly 1 cm on different screens programaticly
Thanks.
 
    
    You can use:
MediaQuery.of(context).size
 /// The size of the media in logical pixels (e.g, the size of the screen).
  ///
  /// Logical pixels are roughly the same visual size across devices. Physical
  /// pixels are the size of the actual hardware pixels on the device. The
  /// number of physical pixels per logical pixel is described by the
  /// [devicePixelRatio].
