Repository navigation
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
| ListTile( | ||
| title: Text( | ||
| '${entry.key.name} - ${entry.value}', | ||
| // TODO(kevmoo): replace `split` with `name` when min SDK is 2.15 |
| '/', | ||
| ); | ||
|
|
||
| void go(BuildContext context) => context.go(location, extra: this); |
There was a problem hiding this comment.
ShellRoute should not have go/push/pushRelacement
There was a problem hiding this comment.
Hmm... It probably shouldn't have a location either.
|
I'm trying to add an example for ShellRouteData, but I'm stuck because the |
|
Hi @johnpryan Do you know what's the state of this PR? |
|
Sorry, this isn't ready to land yet. I'm currently busy with other projects, if someone else can work on this, feel free. The issue I mentioned in the comment above is becuase there's no generator for the ShellRoute annotation. To fix it, I think you need to wire it up in lib/go-router_builder.dart, here: so you add another GoRouterShellGenerator() or something to that array. I would also like to add more tests and a separate example for ShellRoute, similar to my comment above. |
|
@chunhtai I created a PR https://github.com/johnpryan/flutter_packages/pull/1 against @johnpryan 's branch: I created a
Based on your feedback, I'll add a test similar to the existing one for the I've also squashed merged the changes from master to solve the conflicts (pubspec and changelog) but maybe I shouldn't have because now the github action added all the labels... |
|
Hi @GP4cK thanks for helping, can you create a PR directly against the flutter:main? I will close this pr. |
Depends on #2730
Fixes flutter/flutter#111909