cost 232 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