update pickup

This commit is contained in:
tzw
2021-10-09 17:08:28 +06:30
parent 46da87dc0e
commit 50901992d7
21 changed files with 597 additions and 274 deletions

View File

@@ -44,7 +44,7 @@ Future<String> uploadStorage(String path, File? file,
}
Reference ref = FirebaseStorage.instance.ref().child('$path/$fileName');
UploadTask uploadTask = ref.putFile(file);
await uploadTask.resume();
await uploadTask;
String downloadUrl = await ref.getDownloadURL();
return downloadUrl;
// StorageReference storageReference =