StatusBar style adapted based on bar-header background color


#1

Hi,

I’m currently working on an app that have different header color, depending on the current view. Header can sometime be white, sometime black.

I have the StatusBar plugin installed but can’t find information about how the StatusBar (which is in overlay mode) can adapt to the header bg color.

Some native app, like the PayPal one currently do it.

Is it possible with Ionic or is can’t do to limitation?

Thanks,

Steve


#2

Just put StatusBar.styleLightContent(); OR StatusBar.styleDefault(); inside the controller you want each color.

It work for me! Good luck!!