Android 4.4 - Immersive mode top bar

123 Views Asked by At

Does immersive mode work differently in android 4 or am I doing something wrong? When hiding the top bar in android 4 I am getting a dark bar instead of my app scaling to the screen

android 10

android 10

android 4.4 android 4.4

Ive tried two methods of hiding the bar but they both have the same result. The first was using flutters

SystemChrome.setEnabledSystemUIOverlays([]);

The second way I tried was by setting immersive mode via kotline as described here: https://developer.android.com/training/system-ui/immersive#kotlin

Both result in that dark bar. If there a way to get rid of it?

1

There are 1 best solutions below

2
Tobi Daada On

Yes, it does work differently. If you're using immersive mode on Android 4.4 (Kit-Kat) the system draws a translucent bar for you. The translucent property with the shade of pink you use for the toolbar gives a darker color for the status bar.