Hi. I am quite new to Ionic and I’m trying to make a simple To-Do List app, however, the navbar seems to be too big on Android and on iOS it overlaps the status bar. This is my code:
<ion-header>
<ion-navbar hideBackButton color='pastelblue'>
<ion-title>
myTasks
</ion-title>
<ion-buttons end>
<button ion-button icon-only end>
<ion-icon name="add-circle"></ion-icon>
</button>
</ion-buttons>
<ion-buttons>
<button ion-button icon-only>
<ion-icon name="swap"></ion-icon>
</button>
</ion-buttons>
</ion-navbar>
</ion-header>
<ion-content padding>
</ion-content>
This is what I see with ionic serve --lab:
Here is my ionic info:
What could be causing this? Any help is appreciated, thanks!
ramon
November 28, 2018, 12:24pm
2
Try with this HTML to solve Android issue:
<ion-header>
<ion-navbar hideBackButton color="pastelblue">
<ion-buttons start>
<button ion-button icon-only>
<ion-icon name="swap"></ion-icon>
</button>
</ion-buttons>
<ion-title>
myTasks
</ion-title>
<ion-buttons end>
<button ion-button icon-only end>
<ion-icon name="add-circle"></ion-icon>
</button>
</ion-buttons>
</ion-navbar>
</ion-header>
<ion-content padding>
</ion-content>
iOS issue is duplicated:
Hello guys,
I’m trying to build a very simple navbar here, but the padding-top of it on iOS is by far very different from what I’m planning.
What I need is:
[33 AM]
What I currently have is:
[12 AM]
Despite the fact that there’re still some style missing, for buttons / font, as you can see in my sample my navbar is currently overriding iOS default bar.
So, the source code that I currently have is quite simple:
<ion-navbar>
<ion-buttons end>
<button ion-button icon-only>
<i…