Skip to content

[Android] Full screen Platform View fails on fullscreen devices with notch #33290

@yoavrofe

Description

@yoavrofe

A full screen WebView (w/o an AppBar) now produces the following error on my Pocophone on the master channel:

E/flutter (14390): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(error, Creating a virtual display of size: [1080, 2116] is not supported. It is larger than the device screen size: [1080, 2029]., null)

The screen size as calculated by MediaQuery.of(context).size.height*MediaQuery.of(context).devicePixelRatio
is 2116.0.

This is a critical bug, that prevents running full-screen platform views (including Google Maps) on similar devices.

Probably caused by: flutter/engine@7471dde

Which solved this: #28978

Flutter Doctor:

[✓] Flutter (Channel master, v1.6.2-pre.21, on Mac OS X 10.14.4 18E226, locale en-IL)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
[✓] Android Studio (version 3.3)
[✓] VS Code (version 1.34.0)
[✓] Connected device (1 available)

Metadata

Metadata

Assignees

Labels

a: platform-viewsEmbedding Android/iOS views in Flutter appsc: regressionIt was better in the past than it is now

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions