simple_navigation 1.0.29 copy "simple_navigation: ^1.0.29" to clipboard
simple_navigation: ^1.0.29 copied to clipboard

outdated

Simple named route navigation that unofficially addresses Flutter issue 11655 ("build called for non-current screens")

simple_navigation #

Simple named route navigation that unofficially addresses Flutter issue 11655 ("build needlessly called for non-current screens lower on stack").

THIS PACKAGE ISN'T FOR EVERYONE. I prefer the navigation approach implemented herein but it's non-standard.

Simplifications #

  • for simplicity of development, navigation is static
  • don't need to pass context
  • class named 'Nav' instead of 'Navigation' because it's shorter

Limitations #

  • since static, can't have multiple instances
  • currently doesn't work with showDialog() return values

Features #

  • backButtonCaption with callback function

TODO #

  • use generics for arguments: either Object (standard) or Map (my preference)
  • force redraw entire tree (not sure if possible)
  • pop all the way out of application (configure yes/no)
  • test: hot reload doesn't erase stack
  • solve: object vs. named route problem
  • pass in trace flag to constructor
  • return values? (friends showDialog... pop(return))

Pull Request #

Pull requests are welcome!

0
likes
0
pub points
0%
popularity

Publisher

verified publisheronlyup.com

Simple named route navigation that unofficially addresses Flutter issue 11655 ("build called for non-current screens")

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on simple_navigation