XianyuTech / hybrid_stack_manager

Used for stack management in hybrid scenarios.
MIT License
163 stars 17 forks source link

不支持flutter1.0 #4

Open jy4618272 opened 5 years ago

jy4618272 commented 5 years ago

编译报错: NavigatorState navState = Navigator.of(globalKeyForRouter.currentContext); List<Route> navHistory = navState.history;

history在flutter1.0及其以上版本已经是私有变量了;

运行时报错: Field privateField0 = FlutterView.class.getDeclaredField("mDiscoveryReceiver"); mDiscoveryReceiver在新版本引擎中已经不存在该定义了。

a-voyager commented 5 years ago

我选择的是修改 Flutter SDK 的源码 🤣 flutter/lib/src/widgets/navigator.dart 文件的 NavigatorState 类中增加 List<Route> get history => _history;

jy4618272 commented 5 years ago

https://github.com/FlutterRepo/hybrid_stack_manager 怎么还有一个版本?

kangwang1988 commented 5 years ago

移动过一次仓库,更新后的版本都提交在这个group下面。

jy4618272 commented 5 years ago

https://github.com/voiddog/hybrid_stack_manager 这个支持1.0