Repository navigation
Document how to use AnnotatedRegion to correctly set system ui color #24893
Description
Activity
A workaround.
await Navigator.push(context, MaterialPageRoute(builder: (BuildContext context) => SecondPage())); Timer(Duration(milliseconds: 500), () { SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark); });
Reacted by XinghuiReacted by ForChange客服小弟- addedframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.
on Dec 2, 2018 - addedd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/and removedengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
on Dec 3, 2018 - addedframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
on Dec 17, 2018 I have the same problem.
I'm using a
TabControllerand the color resets upon navigation, if I do the workaround it looks weird since the colors flash@jonahwilliams You added the api docs tag. Can you briefly say what we need to improve in the docs so others looking at this issue have context?
- addedf: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.
on Jan 4, 2019 Oh, I believe this is what we should document: #24969 (comment)
- changed the title
[-]iOS status bar text color does not get recovered when get back to no AppBar page[/-][+]Document how to use AnnotatedRegion to correctly set system ui color[/+]on Jan 4, 2019 @jonahwilliams should #24989 fix this or is there more work planned?
Somewhat related #27776
1 remaining item
We still have the problem that it's not possible to return to the original color once we leave the page.
What I would like to do is to set a custom color only for a specific page, and once I leave the page it goes back to a default color.
Reacted by Jon Samwell, Jan, Mike Hughes, gleesonger, Adam Douglass, Ahmet Akıl, Jonas Zebari, Leonardo Caldas, Danilo Fuchs, Kiboom and 8 moreAnyone have an update on how to use AnnotatedRegion for this? There's very little information out there on the widget.
My bad, it's a request for documentation
Thank you- addedwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
on Mar 27, 2020 @TahaTesser This isn't a bug, it's a request for documentation.
Reacted by Taha Tesser- added and removedwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
on Mar 30, 2020 - Reacted by Yahya Uddin, askme, Abhi Muktheeswarar, Christoph Krassnigg, Xtase, HungHD, Olga Fominova, Reza Dalman, Peer, Martino Yovo and 1 more
- addedP2Important issues not at the top of the work listImportant issues not at the top of the work list
on May 29, 2020 - addedr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
on Mar 8, 2023 This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Mar 22, 2023

When it gets back to a page with no AppBar, it seems
build()won't be called.So there is no chance to call
setSystemUIOverlayStyle, no chance to recover the color of the status bar.I tried to call that after
await Navigator.push, but unfortunately it had no effect.Reproduce code
flutter doctor -v