stack_navigation 0.0.8 copy "stack_navigation: ^0.0.8" to clipboard
stack_navigation: ^0.0.8 copied to clipboard

This packages allows navigation with a history foreach item in the bottomnavigation bar.

stack_navigation #

This packages allows navigation with a history foreach item in the bottomnavigation bar.

Use case #

I want to have a simple Navigation like the one used in Instagram. Meaning as a user I have a stack of Widgets for each Navigation Item. Lets say I have a Navigationbar with 3 items (A,B,C). The following picture depicts the stacks on an arbitrary state:

1

Currently the B Item is selected in the Navbar. Therefore, the current visible Widget is xb3! If I click the Navbar Item A now, the current Widget changes to x2a as shown in the following picture:

2

I can add another Widget on top of the current stack by a "simple push":

3

As you can see, the visible widget is now xa3 and xa3 got pushed on the A stack. If I am in the A stack and click the navbar item A again, then the current stack gets popped until A appears, leading to this configuration:

4

2
likes
30
pub points
0%
popularity

Publisher

unverified uploader

This packages allows navigation with a history foreach item in the bottomnavigation bar.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on stack_navigation