如何使用LinearProgressIndicator制作带有来自Firebase Storage的下载数据的下载栏? 我当前正在使用的功能:
Future<int> downloadBuscaDB() async{
String path = await dbManager.localPathFiles();
String fileDBZip = ConstData.dbZip;
FirebaseStorage storage = new FirebaseStorage();
StorageReference ref = storage.ref().child(fileDBZip);
StorageFileDownloadTask storageFileDownloadTask = ref.writeToFile(File('$path/$fileDBZip'));
FileDownloadTaskSnapshot fileDownloadTaskSnapshot = await storageFileDownloadTask.future;
int bCount = fileDownloadTaskSnapshot.totalByteCount;
return bCount;
}