How to make device top panel (status bar) have the same background color as AppBar in flutter? The color of the device top panel is always darker than the AppBar backgroundColor. Thanks a lot.
On iOS, this is already true.
On Android, add the following to onCreate
in MainActivity.java
, after the call to super.onCreate(savedInstanceState);
.
getWindow().setStatusBarColor(0x00000000);
This will override the default status bar color of 0x40000000
, which is set in the onCreate
method of FlutterActivityDelegate
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With