Flutter-如何在GetX中广播?
我有一个要求:我有a,b,c,d,e ....在应用程序中的多页。现在,当我单击页面e中的一个按钮时,更改关键字,所有页面的控制器将获取此通知,并使用此更改的关键字查询Web服务器,然后更新页面的UI。
我知道“ EventBus”可以实现此目标。你知道如何在getx中做吗?
I have a requirement: I have A, B, C, D, E.... multi pages in App. And now When I click a button in Page E, change the keyword, All page's controller will get this notification and use this changed keyword to query the web server then update page's UI.
I know 'EventBus' can achieve this goal. Do you know how to do in GetX.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用obx()小部件。然后,您可以将其内部的FutureBuilder用于Web服务器请求。
You can use Obx() widget. Then you can use FutureBuilder inside it for webserver requests.