genericUser
genericUser

Reputation: 7188

Flutter enable solid status bar (on Android)

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?

Upvotes: 0

Views: 64

Answers (1)

Md. Yeasin Sheikh
Md. Yeasin Sheikh

Reputation: 63749

Wrap your Scaffold's body with SafeArea widget.

MaterialApp(
  body: SafeArea(
       child: Scaffold(

Upvotes: 1

Related Questions