ganeshrvel / flutter_mobx_dio_boilerplate

Advanced and highly scalable boilerplate for building Flutter apps with MobX, Dio, GetIt, and AutoRoutes. Null safe and compatible with Flutter 2.0.
https://github.com/ganeshrvel/flutter_mobx_dio_boilerplate
MIT License
97 stars 25 forks source link

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

Open ledinhthanh opened 2 years ago

ledinhthanh commented 2 years ago

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 commented 2 years ago

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

ledinhthanh commented 2 years ago

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

ledinhthanh commented 2 years ago

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 commented 2 years ago

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