slovnicki / beamer

A routing package built on top of Router and Navigator's pages API, supporting arbitrary nested navigation, guards and more.
MIT License
592 stars 129 forks source link

How to combine Nested Beamer with Multiple Beamers? #574

Open andrespd99 opened 2 years ago

andrespd99 commented 2 years ago

I have an app where I have an IndexedStack of BeamDelegates with a BottomNavigationBar that works well. The problem is that I need to open another page on top of the BottomNavigationBar. I tried with Beamer.of(context, root: true).beamTo() but it doesn't seem to work.

How should I handle beams at root level? I also tried creating a Repository (Im working with Bloc) that gets the Navigator.router() key as a parameter, an tried navigating with that key, but the key's currentState is always null. What am I missing? Is this even possible with Beamer?

joeldegerman99 commented 1 year ago

I can help you if you give me a code sample of your beamer setup. The Beamer.of(context, root: true).beamTo(named) should get the root and beam a page over the bottom navbar