Skip to content

Conversation

@johnpryan
Copy link
Contributor

Reverts #2183 to re-land #1653 with #2177 included

@johnpryan johnpryan changed the title Refactor routerdelegate 2 Refactor RouterDelegate attempt 2 Jun 2, 2022
@johnpryan johnpryan force-pushed the refactor-routerdelegate-2 branch 2 times, most recently from f5b85e3 to 56056d8 Compare June 7, 2022 17:17
@johnpryan
Copy link
Contributor Author

@stuartmorgan this change requires Flutter 3.0, which means that these CI steps are failing:

Does this CI step need to pass before we land this change?

@stuartmorgan-g
Copy link
Collaborator

stuartmorgan-g commented Jun 8, 2022

Does this CI step need to pass before we land this change?

Every CI step needs to land before landing a change.

Per https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#when-to-update-the-required-version (second bullet point) all you need to do is express the correct Flutter constraint to avoid those steps failing. (Currently the tooling only looks at Flutter constraints, not Dart constraints; it's something we should fix at some point, but in this case the package already requires Flutter so a Flutter constraint shouldn't have any downsides.)

johnpryan and others added 18 commits June 14, 2022 13:51
bump go_router_builder to 1.0.5
Analyzing go_router...

  error - lib/src/go_route_information_provider.dart:24:41 - A value of type 'WidgetsBinding?' can't be returned from the function '_binding' because it has a return type of 'WidgetsBinding'. - return_of_invalid_type
  error - lib/src/go_router.dart:51:33 - The property 'platformDispatcher' can't be unconditionally accessed because the receiver can be 'null'. Try making the access conditional (using '?.') or adding a null check to the target ('!'). - unchecked_use_of_nullable_value

2 issues found.
@johnpryan johnpryan force-pushed the refactor-routerdelegate-2 branch from 3d3d53a to fb7c15e Compare June 14, 2022 20:52
Copy link
Member

@loic-sharma loic-sharma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, great work!

@johnpryan johnpryan merged commit f430281 into main Jun 15, 2022
@johnpryan johnpryan deleted the refactor-routerdelegate-2 branch June 15, 2022 16:17
johnpryan added a commit that referenced this pull request Jun 24, 2022
* Call log.clearListeners to disable logging

* Remove debugLogDiagnostics from GoRouterDelegate

fixes #104470

* Add logging test

* format

* Fix copyright header

* Specify types

* Use version 4.0.1

Depends on #2189

* disable logging in tests

* remove print

* Update CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants