Skip to content

PlatformDispatcher.displays appears to be reporting logical screen sizes on MacOS #142629

@goderbauer

Description

@goderbauer

Display.size's documentation says (emphasize mine):

The physical size of this display.

When I access this on my MacOS system, the reported value appears to be in logical pixels, though:

Display.size: Size(2560.0, 1440.0)
Display.devicePixelRatio: 2.0
RenderView in full screen:
RenderView#09fb4
 │ debug mode enabled - macos
 │ view size: Size(5120.0, 2880.0) (in physical pixels)
 │ device pixel ratio: 2.0 (physical pixels per logical pixel)
 │ configuration: BoxConstraints(w=2560.0, h=1440.0) at 2.0x (in logical pixels)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: multi windowIssues related to multi window supportengineflutter/engine related. See also e: labels.platform-macBuilding on or for macOS specificallyteam-macosOwned by the macOS platform team

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions