commit | 010ba5012831a4e02349e31965a0b080d7b44280 | [log] [tgz] |
---|---|---|
author | chunhtai <47866232+chunhtai@users.noreply.github.com> | Wed Jun 07 16:19:52 2023 -0700 |
committer | GitHub <noreply@github.com> | Wed Jun 07 23:19:52 2023 +0000 |
tree | 2a57b3e6d70d2cb8e99ac82f6ec9966eac4024a4 | |
parent | e37dd83c912061aa42ed093829d81f7ddc96062f [diff] |
[go_router] Refactors imperative APIs and browser history (#4134) Several thing. 1. I move all the imperative logic from RouterDelegate to RouteInformationParser, so that the imperative API can go through Router parsing pipeline. The Parser will handle modifying mutating RouteMatchList and produce the final RouteMatchList. The RouterDelegate would only focus on building the widget base on the final RouteMatchList 2. combine RouteMatcher and Redirector with RouteConfiguration. I feel that instead of passing three class instances around, we should probably just have one class for all the route parsing related utility. 3. serialize routeMatchList and store into browser history. This way we can let backward and forward button to reflect imperative operation as well. 4. Some minor clean ups
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages
directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: