0

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?

genericUser
  • 4,417
  • 1
  • 28
  • 73

1 Answers1

1

Wrap your Scaffold's body with SafeArea widget.

MaterialApp(
  body: SafeArea(
       child: Scaffold(
Md. Yeasin Sheikh
  • 54,221
  • 7
  • 29
  • 56