You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Bloc, there is a problem that I have been very concerned about so far, it is impossible to truly cross- page interaction! After repeatedly consulting official documents, a global Bloc method was used to achieve "pseudo" cross- page interaction.
这两天想迁移到GetX,从Getx项目链接过来的,看到文档的开头我有点不解:
为什么说Bloc无法做夸页面交互,文档中的
final JumpOneLogic logic = Get.put(JumpOneLogic());
和final JumpTwoLogic twoLogic = Get.put(JumpTwoLogic());
不就是等价于两个局部的BlocProvider吗,Bloc自身就使用Provider库作为依赖管理,应该是能实现文档中跨页面交互的需求,而不需要使用全局路由。当然,GetX能提供更清晰易用的依赖管理倒是真的。The text was updated successfully, but these errors were encountered: