Home > Software design >  Flutter enable solid status bar (on Android)
Flutter enable solid status bar (on Android)

Time:08-18

As you can see, my default app status bar is transparent.

I want it to be solid, and the layout to be between the status bar and the bottom nav bar.

enter image description here

I'm using Scaffold inside MaterialApp:

MaterialApp(
  body:
    Scaffold(
      body:
      ...

How do I achieve that?

CodePudding user response:

Wrap your Scaffold's body with SafeArea widget.

MaterialApp(
  body: SafeArea(
       child: Scaffold(
  • Related