Skip to content

The callback set by setSystemUIChangeCallback seems to be called with inverted values on Android #111618

@jiahaog

Description

@jiahaog

The specific code of interest is in the PlatformPlugin on Android where a callback is set on View.OnSystemUiVisibilityChangeListener to propagate the values from the view to Dart through systemChromeChanged. The signature of systemChromeChanged is

public void systemChromeChanged(boolean overlaysAreVisible);

where overlaysAreVisible is propagated back to Dart when the setSystemUIChangeCallback is set.

It seems like false is passed when the "system bars are visible" according to the comment, and vice-versa, where it should be the other way round according to signature of systemChromeChanged.

Please close this issue if I misunderstood :)

cc @Piinks

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: layoutSystemChrome and Framework's Layout Issuesengineflutter/engine related. See also e: labels.platform-androidAndroid applications specificallywaiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions