Unverified Commit e15cb7f8 authored by Reid Baker's avatar Reid Baker Committed by GitHub

Add linked dart doc for Display on media query. (#139587)

FlutterView.display.size tells you the resolution of the display on supported platforms. FlutterView.physicalSize tells you the view size, which may be different from the display. This can help you tell if you are being letterboxed on android. 

https://medium.com/flutter/developing-flutter-apps-for-large-screens-53b7b0e17f10

Related to [flutter/website/9896](https://github.com/flutter/website/issues/9896)
parent 4a4801de
......@@ -290,7 +290,8 @@ class MediaQueryData {
///
/// See also:
///
/// * [FlutterView.physicalSize], which returns the size in physical pixels.
/// * [FlutterView.physicalSize], which returns the size of the view in physical pixels.
/// * [FlutterView.display], which returns reports display information like size, and refresh rate.
/// * [MediaQuery.sizeOf], a method to find and depend on the size defined for
/// a [BuildContext].
final Size size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment