Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart Unhandled Exception: type 'AdaptivePage<dynamic>' is not a subtype of type 'AutoRoutePage<Object>' in type cast #7

Open
ledinhthanh opened this issue Sep 14, 2021 · 4 comments

Comments

@ledinhthanh
Copy link

Hi Ganesh Rathinavel!

Thank you so much for the boilerplate for building Flutter App, i'm a newbie and learning about flutter.
After clone your git and install, I have an issues when run iOS app:

[VERBOSE-2:shell.cc(93)] Dart Unhandled Exception: type 'AdaptivePage' is not a subtype of type 'AutoRoutePage' in type cast, stack trace: #0 StackRouter._addEntry
package:auto_route/…/controller/routing_controller.dart:878
#1 StackRouter._push
package:auto_route/…/controller/routing_controller.dart:705

(I tried with flutter SDK 2.0 and 2.5 but same that error)

Please help me, thanks !

@ganeshrvel
Copy link
Owner

Feel free to modify the router type in lib/common/router/router.dart as required and run the builder script.
Reload the app

@ledinhthanh
Copy link
Author

I haven't changed any files, so I don't know how to solve it.

@ledinhthanh
Copy link
Author

Feel free to modify the router type in lib/common/router/router.dart as required and run the builder script.
Reload the app

--> navigation_helper.dart here is error. I tried skip that and use auto_route and it worked.

@sxywalkr
Copy link

Feel free to modify the router type in lib/common/router/router.dart as required and run the builder script.
Reload the app

--> navigation_helper.dart here is error. I tried skip that and use auto_route and it worked.

hi,, can you explain more detail for this fixing issue,, i'm facing same issue

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

No branches or pull requests

3 participants