Open jy4618272 opened 5 years ago
history在flutter1.0及其以上版本已经是私有变量了;
运行时报错: Field privateField0 = FlutterView.class.getDeclaredField("mDiscoveryReceiver"); mDiscoveryReceiver在新版本引擎中已经不存在该定义了。
我选择的是修改 Flutter SDK 的源码 🤣 flutter/lib/src/widgets/navigator.dart 文件的 NavigatorState 类中增加 List<Route> get history => _history;
https://github.com/FlutterRepo/hybrid_stack_manager 怎么还有一个版本?
移动过一次仓库,更新后的版本都提交在这个group下面。
https://github.com/voiddog/hybrid_stack_manager 这个支持1.0
编译报错: NavigatorState navState = Navigator.of(globalKeyForRouter.currentContext); List<Route> navHistory = navState.history;
history在flutter1.0及其以上版本已经是私有变量了;
运行时报错: Field privateField0 = FlutterView.class.getDeclaredField("mDiscoveryReceiver"); mDiscoveryReceiver在新版本引擎中已经不存在该定义了。