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>
* 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