I set Scaffold
appBar:
to null
, but the Appbar is grey not white.
return Scaffold(
appBar: null,
body: .......
);
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.
Use AppBar
's systemOverlayStyle
property:
AppBar(
systemOverlayStyle: SystemUiOverlayStyle(statusBarColor: Colors.white),
)