This is a new PR to update the navigation_and_routing sample to the
latest version of go_router. It is a based on
https://github.com/flutter/samples/pull/1437
---------
Co-authored-by: Brett Morgan <brettmorgan@google.com>
## Pre-launch Checklist
- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [ ] All existing and new tests are passing.
---------
Co-authored-by: David Iglesias <ditman@gmail.com>
Co-authored-by: Mark Thompson <2554588+MarkTechson@users.noreply.github.com>
Co-authored-by: John Ryan <ryjohn@google.com>
Fail early on nullable context objects - no code paths allow null
Eliminate superfluous private function
Use a function over an abstract class with one method
* Add duration parameter to FadeTransitionPage
* Use didChangeDependencies instead of didUpdateWidget
* Don't notify listeners if the path hasn't changed
* Update navigation sample WIP
* Use Link and RouteStateScope in settings screen
* update README
* use named parameters for Library.addBook()
* Make _handleAuthStateChanged synchronous
* add missing copyright headers
* Address code review comments
* Address code review comments
* move snippets into old_snippets directory
* add new navigation_and_routing sample
* add copyright headers
* Apply #827 to old_snippets/ directory and upgrade them to null safety
* Code review comments
- Move Guard class into parser.dart
- Move usage of guards from Delegate to RouteInformationParser
- Rename delegate to SimpleRouterDelegate
* clean up imports
* refactor settings screen, fix bug
* avoid conflicting paths /books/new and /books/1 - rename to book/1
* dispose fields in _BookstoreState class
* remove /books path
This was causing problems
* add comment
* Change BookstoreAuthScope and BookstoreAuthScope to InheritedNotifier
* fix warnings
* Make the initial route configurable, set to '/signin'
* Enable deep linking
https://flutter.dev/docs/development/ui/navigation/deep-linking
* use path URL strategy on the web.
* remove TODO, add comment
* Rename Navigator 2.0 to Router
This aligns better with the documentation for this new API, and doesn't
imply that apps need to be upgraded.
* introduction -> navigator