You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we schedule a microtask and update the system chrome to whatever the last value is. This can vary based on which widget subtrees get rebuilt, since it is conventional to call this API in build.
Instead we should always pick an overlay style setting based on the topmost widgets.
Explored a solution that involved hitTesting near the very top of the screen, triggered by a special widget. Problems:
Only works consistently if the widget is sufficiently early in the tree
Blocked by certain parent widgets that handle gestures
Page transition animations will build this set of widgets, however the new theme won't be in position to be hitTested until the route animation has completed.
Because of above, seems like we would need to do this on every frame.
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 -v and a minimal reproduction of the issue.
Activity
jonahwilliams commentedon May 16, 2018
Explored a solution that involved hitTesting near the very top of the screen, triggered by a special widget. Problems:
I'm looking for a more robust solution.
cc @HansMuller , @Hixie
goderbauer commentedon May 16, 2018
I was just pointed to #4630.
Hixie commentedon May 16, 2018
you want to hit test on the layer tree. See #4630 (comment)
jonahwilliams commentedon Jun 20, 2018
Closing as a dupe of #4630
github-actions commentedon Sep 3, 2021
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.