[英]Cached Network Image onLoaded function?
有沒有辦法獲得有關緩存網絡圖像何時完成加載圖像的指示? 有一個占位符,所以必須有一種方法來獲得關於何時停止使用占位符而不使用占位符的指示符是嗎?
你可以使用progressIndicatorBuilder我不知道這是否是最好的方法,但它可以幫助你
progressIndicatorBuilder: (BuildContext context, String url, DownloadProgress downloadProgress) {
//do something with value when value == 1
double? value = downloadProgress.progress; //between 0 and 1
return Container();
},
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.