Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@lidongze91
Copy link
Contributor

Fix padding top issue for full-screen mode. Related to: flutter/flutter#54911

@auto-assign auto-assign bot requested a review from flar April 16, 2020 04:10
@xster
Copy link
Member

xster commented Apr 16, 2020

Thanks for the patch.

Can you add a test in FlutterViewTest.java? With Robolectric and Mockito, you should be able to mock both the input and output.

See https://github.com/flutter/engine/blob/master/shell/platform/android/test/io/flutter/embedding/android/FlutterViewTest.java#L51 for example. You can mock a FlutterRenderer and assert that setViewportMetrics is called with the correct number for both status bar hidden and not hidden cases.

@xster xster self-requested a review April 16, 2020 21:21
@flar flar requested review from matthew-carroll and removed request for flar April 28, 2020 22:57
@xster
Copy link
Member

xster commented May 19, 2020

I patched your PR in #17985 so closing.

@xster xster closed this May 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants