Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pushAndRemoveUntil screens after tapping some tab item? #4

Closed
d-apps opened this issue Apr 6, 2020 · 2 comments
Closed

How to pushAndRemoveUntil screens after tapping some tab item? #4

d-apps opened this issue Apr 6, 2020 · 2 comments

Comments

@d-apps
Copy link

d-apps commented Apr 6, 2020

I have a List of Tabs and in the HomeScreen() I have other screens inside that I need to navigate to, for example, when I am at HomeScreen and navigate to the second screen, and later the third screen (screen after HomeScreen, HomeScreen1 - > Screen2 ->Screen3), if I tap the Home Icon from the BottomNavigationBar, I don't go back to HomeScreen.

Could you help me how can solve it?

@BilalShahid13
Copy link
Owner

BilalShahid13 commented Apr 7, 2020

The bottom tab items are only for navigating between tabs and not supposed to do something else. So tapping them will only change your current tab and not do something else.

I'm currently working on an update of the package which will allow people to attach their own custom widget with the nav bar. I think then you can modify your widget to do what you want even change the item tap behavior. Hopefully I will be able to release the update in a couple of days.

@BilalShahid13
Copy link
Owner

Check the latest version i.e. 1.3.0. You can now customize what happens when you tap an item using your own custom style. If you want to use one of the package's style with this then head over the repository, copy that style's code and paste it in your project to use that as a customWidget.

I'm closing the issue now as it is now possible to achieve what you asked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants