Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Extra parameter is null. #83

Closed
rvlajcev opened this issue Oct 10, 2021 · 2 comments
Closed

Extra parameter is null. #83

rvlajcev opened this issue Oct 10, 2021 · 2 comments

Comments

@rvlajcev
Copy link

go_router: ^2.1.0

flutter clean
flutter pub get
onPressed: () => context.go("/route", extra: MyClass())

GoRoute(      
      path: "/route",
      pageBuilder: (context, state) {
        try {
          final data = state.extra as MyClass;
        } catch (e) {
          print(e);
        }
...

Thank you.

@csells
Copy link
Owner

csells commented Oct 11, 2021

fixed in v2.1.1. @rvlajcev can you confirm?

@rvlajcev
Copy link
Author

Yes, I can confirm.
It's working fine now.
Cheers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants