Ionic tabs disappear when I dismiss a modal - ionic-framework

When I call the modalController.dismiss() method like this :
dismiss() {
this.modalController.dismiss(); }
When I press on the back button : image here
, the modal closed itself correctly image here ,but the tabs disappear when I am redirect to the previous page (before present the modal). instead of displaying the tabs like here.
Any idea to fix this ?
Thank you for your response.
Cordially, Will.

Related

How to pop bottom modal sheet when keyboard is hidden?

I want to pop my bottom modal sheet when my keyboard is hidden. But currently when I press back button keyboard gets hidden but bottom modal sheet remains opened.
I tried using package flutter_keyboard_visibility to detect if the keyboard is hidden and tried to pop the bottom navigation bar. But now when do that and press outside barrier to dismiss, there are two calls to Navigator.pop(context) method. One after hiding the keyboard and another built-in pop by the bottom modal sheet.
Can anyone help me find out how to achieve this?
Thanks.
I would do it the following way:
a) Return WillPopScope inside the Widget build method
b) As a callback for WillPopScope I will Navigator.pop(context)
You can also try the keyboard_visiblity plugin. This will provide you a callback easily.
Did you try using setState(() {}); ?
it will also helps for updating the state of screen

How do I navigate to another screen from a login screen with SwiftUI

I want to navigate from a splash/login view to a home view without the possibility of going back unless the user restarts the application using SwiftUI. I know I can use a navigation link and SwiftUI will present a back button. Is there a way to go from view to view without the back button?
If you need to present a view, you can look at this article
On the contrary if the concern is not to show the back button, on the home view one can hide the back button using the configuration like
.navigationBarBackButtonHidden(true)

Back button issue when alert or ion-select is present

I'm trying to close alert when the alert is present with back key press, else the page will be navigated to another page. I've tried alert.dismiss() in ionViewDidLeave & WillLeave but its not triggering in the back button.It's navigating back page still alert or ion-select options are present in the other page.Please help me to come out from this problem.

Swift: Pop from one tab to another tab

Have a tabBar Application in which there are five tabs and in one tab have added back button and i want to pop back using back button. how can it be done? have tried below code and it doesn't work
self.navigationController?.popToRootViewControllerAnimated(true)

NavigationBar Right Button Problem

I have a navigation bar in my app. The below pictures are in the order of navigation.
Problem I have is, on clicking the "Main" button , I am able to perform the action and goto the required screen , but the navigation bar does not look like the first on (with Menu as left button). Instead it look like 4th image. How to make it look like first image so that I can make the user to navigate to "Menu" screen by clicking menu button ?. Thanks for the help …!!!
If I'm understanding this correctly, you may have pushed the first view controller (The one from screenshot 1) when clicking on main which is why you see "lens" in the back button. That back button takes the title of the previous view controller in the stack. What you want to do is pop to the first view controller when they click on Main using either popToRootViewController or popToViewController:animated