Update documentation on what display information is provided. (#161785)

This was fixed in Linux in
https://github.com/flutter/flutter/pull/161359
This commit is contained in:
Robert Ancell 2025-01-20 12:23:19 +13:00 committed by GitHub
parent b9e86a565f
commit 63110570da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,9 +174,9 @@ class PlatformDispatcher {
///
/// Presently, on Android and Web this collection will only contain the
/// display that the current window is on. On iOS, it will only contains the
/// main display on the phone or tablet. On Desktop, it will contain only
/// a main display with a valid refresh rate but invalid size and device
/// pixel ratio values.
/// main display on the phone or tablet. On Desktops other than Linux, it will
/// contain only a main display with a valid refresh rate but invalid size and
/// device pixel ratio values.
// TODO(dnfield): Update these docs when https://github.com/flutter/flutter/issues/125939
// and https://github.com/flutter/flutter/issues/125938 are resolved.
Iterable<Display> get displays => _displays.values;