flutter_mobx_dio_boilerplate icon indicating copy to clipboard operation
flutter_mobx_dio_boilerplate copied to clipboard

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

Open ledinhthanh opened this issue 2 years ago • 4 comments

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<Object>' 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 !

ledinhthanh avatar Sep 14 '21 07:09 ledinhthanh

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

ganeshrvel avatar Sep 14 '21 07:09 ganeshrvel

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

ledinhthanh avatar Sep 14 '21 08:09 ledinhthanh

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.

ledinhthanh avatar Sep 14 '21 17:09 ledinhthanh

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

sxywalkr avatar Oct 16 '21 21:10 sxywalkr