ayham95 / Custom-navigator

A flutter package that handles navigation deep in the widget tree
MIT License
80 stars 33 forks source link

pushReplacement() and .pop() #11

Closed domons closed 4 years ago

domons commented 4 years ago

Hi, I have two problems, I use CustomScaffold and I have some tabs in bottom bar.

First case: one of tab is "menu", where I have push to other pages, sth like this: Navigator.pushReplacement(context, MaterialPageRoute(builder: (cntx) => MyNewPage())) when I clicked it, screen change but bottom bar is crashed - any click on tab do nothing.

Second case: Changes of tabs doesn't saved history, so back button don't work between tabs of bottom bar. Also I want "close" my menu tab (back to previous tab/screen) in this way Navigator.of(context).pop(); and I have white screen with bottom bar and this same problem like first case...

I have latest version of plugin... Any idea? ;)

domons commented 4 years ago

Is still there third case. When I go to tab, another page and another one page and I clicked any other tab in bottom bar I go to previous screen (like .pop()) not tab which I clicked...

domons commented 4 years ago

Any idea?

ayham95 commented 4 years ago

I'm sorry for the late response, but can you tell me why are you using Navigator.pushReplacement ??

domons commented 4 years ago

Because I don't want to have "back arrow" in appbar. But biggest problem is third case, completely unrelated with pushReplacement method