Search code examples
androidflutterdartandroid-emulator

Why is the AppBar background color not completely white on Android?


I set Scaffold appBar: to null, but the Appbar is grey not white.

return Scaffold(
    appBar: null,
    body: .......
);

AppBar

And I also set AppBar color to white but result is same as null.

How can I make Appbar color be white? Set null is not enough?

Below image is the AppBar of Google Play Store.

Play Store AppBar


Solution

  • Use AppBar's systemOverlayStyle property:

    AppBar(
      systemOverlayStyle: SystemUiOverlayStyle(statusBarColor: Colors.white),
    )