文件最后提交记录最后更新时间
[go_router] Update sype safe routing topic to use mixin from go_router_builder 3.0.0 (#9422) Fixes https://github.com/flutter/flutter/issues/170574 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.11 个月前
Update repo for 3.32 stable (#9311) Does all of the steps from https://github.com/flutter/flutter/blob/master/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md for the 3.32 stable release (except the first one, as the stable roller has already landed).11 个月前
[go_router] Add TODOs for meta migration (#9535) Prepares for: https://github.com/flutter/flutter/issues/171410 I created a calendar event for January 30, 2026. Hopefully I'll still employed then 🤞 **Version change exemption reason**, **CHANGELOG exemption reason**, **Test exemption reason**: This only adds comments. No semantic changes. ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.10 个月前
[go_router] Fix routing to treat URLs with different cases (e.g., /Home vs /home) as distinct routes. (#9426) Fixes https://github.com/flutter/flutter/issues/169809 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.10 个月前
[go_router] Replaces uri related properties in GoRouterState (#4392) Replaces uri related field in GoRouterState, so that we don't need to mimic the API in uri. This also give developer the access to other field like http scheme(once supported) and fragment.2 年前
[various] Fixes unawaited_futures violations (#4067) This option had been disabled to match flutter/flutter, but the reason it was disabled there was "too many false positives", mostly around animation. That doesn't apply to most packages here, and we've had a number of production bugs—especially in plugins, that use async heavily in ways that are intended to be client-awaitable—that this would have caught. This PR: - Enables the option at the repo level. - Permanently (unless the owners decide to change it) opts out animations and go_router, both of which looked like mostly or entirely false positives. - Temporarily opted out a few plugins that have a lot of violations that should be handled in their own PRs later (camera_android_camerax, most of webview_flutter). - Fixes all remaining violations. In many cases this PR is behavior-changing, replacing implicitly unawaited futures that did not seem obviously intentional with awaited futures, so non-test code in particular should be reviewed carefully to make sure the changes are correct. All of the changes are manual, not fix-generated. Part of https://github.com/flutter/flutter/issues/1273232 年前
[go_router] Refactor internal classes and methods (#2317) * Refactor internal classes and methods - Separate matching from redirection - Add RouteRedirector typedef - Add RouteMatcher class - Add RouteBuilder class - Add RouteConfiguration class - Rename and reorganize internal classes and libraries - Add todo comments * format * Sort imports * Update changelog * Address code review comments - Change name back to GoRouterRefreshStream - Update toString() methods for new naming - Make fields final - Add logging to parser - Add comments - add tests - Move function-scope to new library-scope _addRedirect function - import widgets instead of material where possible * remove routing library * Move classes in go_router.dart into separate libraries * Move Configuration.validate() into constructor * Remove comment * use continue in redirect loop * Fix comments * Sort imports * Fix logging in configuration * add visibleForTesting annotation * Updates from merge with main * Format * Add TODOs to make Router implementation classes private * Add copyright headers * Fix tests * format * fix comment * Update packages/go_router/lib/src/parser.dart Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com> * add whitespace * format * Hide typedefs that weren't previously exported * Delete empty file * add missing import * Specify version 4.1.2 in pubspec.yaml * Update packages/go_router/lib/src/builder.dart Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com> * Fix comment * Add isError and error getters to RouteMatchList * Add issue links to TODO comments * Add link to issue for TODO * Re-apply code from #2306 due to merge conflicts * Add issue references Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com> Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>3 年前
[go_router] adding go_router (#884) 4 年前
[go_router] New feature improve debug full path (#6714) This PR fixes https://github.com/flutter/flutter/issues/148121 - Replaced => with | , ├─ and └─ to improve readability - It prints the Widget name for easy referencing - Shell routes does not have their own paths for it is presented as (Shell route) in the tree - Prints the widget name of the routes it is building.1 年前
[go_router] bump breaking change release to v16 (#9480) 15.2.0 is retracted, we can now merge everything into v16 fixes https://github.com/flutter/packages/pull/9480 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.10 个月前
[go_router] adding go_router (#884) 4 年前
[go_router] bump breaking change release to v16 (#9480) 15.2.0 is retracted, we can now merge everything into v16 fixes https://github.com/flutter/packages/pull/9480 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.10 个月前
[various] Fixes unawaited_futures violations (#4067) This option had been disabled to match flutter/flutter, but the reason it was disabled there was "too many false positives", mostly around animation. That doesn't apply to most packages here, and we've had a number of production bugs—especially in plugins, that use async heavily in ways that are intended to be client-awaitable—that this would have caught. This PR: - Enables the option at the repo level. - Permanently (unless the owners decide to change it) opts out animations and go_router, both of which looked like mostly or entirely false positives. - Temporarily opted out a few plugins that have a lot of violations that should be handled in their own PRs later (camera_android_camerax, most of webview_flutter). - Fixes all remaining violations. In many cases this PR is behavior-changing, replacing implicitly unawaited futures that did not seem obviously intentional with awaited futures, so non-test code in particular should be reviewed carefully to make sure the changes are correct. All of the changes are manual, not fix-generated. Part of https://github.com/flutter/flutter/issues/1273232 年前
[go_router] Add documentation using dartdoc topics (#2789) * Add documentation using dartdoc topics * Remove custom analysis options for example code * Address code review comments * Add nested navigation documentation, remove empty nested.md file. * remove accidentally-committed file * Update changelog * Update pubspec * Address code review comments * Update pubspec.yaml * Fix gorouter.dev link fixes flutter/flutter#115078 * inconsistent periods3 年前
[go_router] bump breaking change release to v16 (#9480) 15.2.0 is retracted, we can now merge everything into v16 fixes https://github.com/flutter/packages/pull/9480 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.10 个月前
README.md

go_router

A declarative routing package for Flutter that uses the Router API to provide a convenient, url-based API for navigating between different screens. You can define URL patterns, navigate using a URL, handle deep links, and a number of other navigation-related scenarios.

Features

GoRouter has a number of features to make navigation straightforward:

  • Parsing path and query parameters using a template syntax (for example, "user/:id')
  • Displaying multiple screens for a destination (sub-routes)
  • Redirection support - you can re-route the user to a different URL based on application state, for example to a sign-in when the user is not authenticated
  • Support for multiple Navigators via ShellRoute - you can display an inner Navigator that displays its own pages based on the matched route. For example, to display a BottomNavigationBar that stays visible at the bottom of the screen
  • Support for both Material and Cupertino apps
  • Backwards-compatibility with Navigator API

Documentation

See the API documentation for details on the following topics:

Migration Guides

Changelog

See the Changelog for a list of new features and breaking changes.

Triage

See the GitHub issues for all Go Router issues.

The project follows the same priority system as flutter framework. P0 P1 P2 P3

Package PRs

Roadmap

This package is considered feature-complete. The Flutter team's primary focus will be on addressing bug fixes and ensuring stability. While active feature development is not currently planned, we still welcome and encourage community contributions to expand the package's functionality.