cost 64 ms
如何使用动态加载的异步数据设置多个 StateNotifierProvider? - How to set multiple StateNotifierProvider (s) with dynamicaly loaded async data?

我完全坚持下面的任务。 所以,我们的想法是使用Riverpod解决这些步骤在暂停应用程序时使用某种Future async从数据库中获取数据(显示SomeLoadingPage()等) 数据加载后: 2.1 初始化多个全局StateNotifierProvider s,它们利用其构造函数中的数据 ...

Riverpod 的 AsyncValue 的 when 方法的属性加载:和错误:不工作作为官方文档 - Riverpod's AsyncValue's when method's properties loading: and error: does not work as official document

根据https://pub.dev/documentation/riverpod/latest/riverpod/AsyncValue-class.html ,我创建了以下代码; 我在加载时遇到以下错误:和错误: 加载: 无法将参数类型“CircularProgressindicator ...


排序:
质量:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM