Open badaozhenjun opened 5 years ago
android 也运行不成功
Compiler message:
file:///E:/flutterproject/hybrid_stack_manager-master2/hybrid_stack_manager-master/lib/router.dart:69:49: Error: The getter 'history' isn't defined for the class '#lib1::NavigatorState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'history'.
XMaterialPageRoute pageRoute = navState.history.firstWhere((Route route){
^^^^^^^
file:///E:/flutterproject/hybrid_stack_manager-master2/hybrid_stack_manager-master/lib/router.dart:86:48: Error: The getter 'history' isn't defined for the class '#lib1::NavigatorState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'history'.
List<Route<dynamic>> navHistory = navState.history;
^^^^^^^
file:///E:/flutterproject/hybrid_stack_manager-master2/hybrid_stack_manager-master/lib/router.dart:96:48: Error: The getter 'history' isn't defined for the class '#lib1::NavigatorState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'history'.
List<Route<dynamic>> navHistory = navState.history;
^^^^^^^
file:///E:/flutterproject/hybrid_stack_manager-master2/hybrid_stack_manager-master/lib/router.dart:111:48: Error: The getter 'history' isn't defined for the class '#lib1::NavigatorState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'history'.
List<Route<dynamic>> navHistory = navState.history;
^^^^^^^
file:///E:/flutterproject/hybrid_stack_manager-master2/hybrid_stack_manager-master/lib/router.dart:146:48: Error: The getter 'history' isn't defined for the class '#lib1::NavigatorState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'history'.
List<Route<dynamic>> navHistory = navState.history;
^^^^^^^
Compiler failed on E:\flutterproject\hybrid_stack_manager-master2\hybrid_stack_manager-master\example\lib\main.dart
Finished with error: Gradle task assembleDebug failed with exit code 1
iOS 这需要把 引用到 这个地方#import <Flutter/Flutter.h>,修改成 #import <Flutter/Flutter/Flutter.h>。
16:35:04.746 23 info flutter.tools /hybrid_stack_manager/lib/router.dart:146:48: Error: The getter 'history' isn't defined for the class '#lib1::NavigatorState'. 16:35:04.746 24 info flutter.tools Try correcting the name to the name of an existing getter, or defining a getter or field named 'history'.
这是什么情况呢??
好像是版本升级把变量私有化了,希望官方抓紧时间更新一下!
看下README.md
后续我会看下是否能够不用改框架就满足需求。
@moyaying
哦,是这样。我没往改框架代码这一方向想。。。 谢谢你,也更期待优雅解决。
在 2018年12月14日,上午9:53,KyleWong notifications@github.com 写道:
看下README.md https://user-images.githubusercontent.com/817851/49978563-1ce0df80-ff86-11e8-98d4-a745182026ee.png 后续我会看下是否能够不用改框架就满足需求。
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alibaba-flutter/hybrid_stack_manager/issues/1#issuecomment-447185876, or mute the thread https://github.com/notifications/unsubscribe-auth/AF0YVPTgrm8pK9rj83Wu-73xqlSiACZRks5u4wSwgaJpZM4YwI4B.
navState.history 新版本的Flutter应该不支持了吧
Again, Read README first.
@kangwang1988 👏解决了