Skip to content

Commit e15cb7f

Browse files
authored
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](flutter/website#9896)
1 parent 4a4801d commit e15cb7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/flutter/lib/src/widgets/media_query.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ class MediaQueryData {
290290
///
291291
/// See also:
292292
///
293-
/// * [FlutterView.physicalSize], which returns the size in physical pixels.
293+
/// * [FlutterView.physicalSize], which returns the size of the view in physical pixels.
294+
/// * [FlutterView.display], which returns reports display information like size, and refresh rate.
294295
/// * [MediaQuery.sizeOf], a method to find and depend on the size defined for
295296
/// a [BuildContext].
296297
final Size size;

0 commit comments

Comments
 (0)