You can change the color of the top bar and fix the bar on IOS with the plugin cordova-plugin-statusbar
. Include in config.xml
the property StatusBarOverlaysWebView
to change the color and the StatusBarOverlaysWebView
as false so that the top menu does not stay over your app on IOS.
Install the plugin:
ionic cordova plugin add cordova-plugin-statusbar
npm install --save @ionic-native/status-bar
Include in app.module.ts:
import { StatusBar } from '@ionic-native/status-bar';
...
providers: [
StatusBar,
...
Include in config.xml:
<platform name="android">
<preference name="StatusBarBackgroundColor" value="#000000" />
</platform>
<platform name="ios">
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="#000000" />
</platform>
Sorry to ask upon your question, that layout you produced or is something that already comes in Ionic ... !!! i move with angular and React and we always have to install kkk
– novic
Hello, the layout of this header (buttons, seachbar and cart) was created by me, but it uses ready components of Ionic, the property of positioning the element is the own framework (use Start and End to position the elements), some styling as in the case of the balloon trolley made manually (SCSS), but the components are practically ready for use.
– Gonzaga Neto