Skip to content

SystemChrome setSystemUIOverlayStyle failed #59130

@weiminghuaa

Description

@weiminghuaa
SystemChrome.setSystemUIOverlayStyle(
       SystemUiOverlayStyle(statusBarBrightness: Brightness.light)
);

Execute this code, and add print(_pendingStyle); in setSystemUIOverlayStyle function

alway print twice

flutter: {systemNavigationBarColor: null, systemNavigationBarDividerColor: null, statusBarColor: null, statusBarBrightness: Brightness.light, statusBarIconBrightness: null, systemNavigationBarIconBrightness: null}
flutter: {systemNavigationBarColor: null, systemNavigationBarDividerColor: null, statusBarColor: null, statusBarBrightness: Brightness.dark, statusBarIconBrightness: Brightness.light, systemNavigationBarIconBrightness: null}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: layoutSystemChrome and Framework's Layout Issuesfound in release: 1.22Found to occur in 1.22found in release: 1.26Found to occur in 1.26frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions