我不能用multiple consumers来包装我的脑袋,一个有Provider 的小部件?假设我的小部件是CurvedNavigationBar,我在该小部件中有4个项目.我还有4个不同的类,它们扩展了ChangeNotifier和are responsible for each item in CurvedNavigationBar.
How can I listen to those 4 change notifiers in a single widget?我看了文档,没有找到这样的例子.这有可能吗?我发现Consumer有一个构建器方法,这意味着您可以构建一个小部件only once/and listen to it once.
我应该使用一个类来扩展ChangeNotifier,然后更新该小部件中的值,并且只使用一个使用者来侦听更新的值吗?