‘
void main()async {
runApp(MyApp());
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);
}
”’
and I use all of these feilds :
”’
SystemUiMode.immersive
SystemUiMode.immersiveSticky
SystemUiMode.edgeToEdge
SystemUiMode.leanBack
SystemUiMode.manual , overlays: []
”’
3
Answers
as weird as it is, you need to wrap your page with
SafeArea
.Consider this as your cheat sheet:
Just wrap your Scaffold with the ColoredBox (or Container) widget and provide the color you want.
This should be the outermost widget.
eg:
or