flutter本地存储功能SharedPreferences和ios原生与交互是否存在冲突?

原来项目SharedPreferences正常使用,但是添加ios原生与交互后SharedPreferences就失效了,提示’Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)’,自己也尝试寻找原因,大概定位到是oc设置rootViewController时,如果是rootViewController是flutter界面那么跳转无法使用,SharedPreferences可以使用,如果是rootViewController是ios原生界面,那么跳转可以使用SharedPreferences失效,但是没有找到解决这个不兼容的办法,希望各位大虾帮忙看看

讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!