Closed shreyas1599 closed 4 years ago
It seems a native behavior of Android. I'm not sure, how do other apps handle it?
Some apps change the color and some others modify the app bar background to match the status bar hue. For example, Gmail, Facebook, PlayStore have the same color as the app bar,(they've changed default behavior) while Instagram and Whatsapp have retained the default behavior. The official Github app also has modified the status bar to match the app bar. So, if I'm right most apps which have a white background have changed the status bar color to make it white while the ones with more darker hues have retained the default behaviour. Or they've changed the tint of the app bar to make it seem more natural.
So it entirely depends on the app. But yeah, there are apps which change the default.
OK, that's detailed enough. Just confirm the best practice because I'm not an expert of UI/UX
Is there any approach to move the action outside build
method?
You're right. I should've placed it in main.dart
. Is that fine?
I think it is OK (If it works). So it would not be executed on every render.
It works. I checked.
Off-topic: why is the Android's variant widgets not properly themed? I "noped" right out when I saw the auth Actions sheet and then saw the tokens' dialog.
Before:
After:
Looks better right? Also makes it more consistent with the look on iOS.