Reset status bar color

Asked by At

I made status bar same color as app bar:

  statusBarColor: myAppBarColor,

But when I show a modal bottom sheet, status bar is displayed over the dark overlay:

I want to to shade status bar together with app bar. How do I reset status bar color back to default?

I tried passing statusBarColor: null (before showing modal bottom sheet) but it has no effect.

1 Answers

Pavel On Best Solutions

Make status bar color transparent (in main function):

  statusBarColor: Colors.transparent,