Skip to content

Commit b7ba402

Browse files
committed
fix utils.dart
1 parent a37a84d commit b7ba402

File tree

1 file changed

+2
-2
lines changed
  • src/serious_python_platform_interface/lib/src

1 file changed

+2
-2
lines changed

src/serious_python_platform_interface/lib/src/utils.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ Future<String> extractAssetOrFile(String path,
6060
archive = ZipDecoder().decodeBytes(data);
6161
} else {
6262
final inputStream = InputFileStream(path);
63-
archive = ZipDecoder().decodeBuffer(inputStream);
63+
archive = ZipDecoder().decodeStream(inputStream);
6464
}
65-
await extractArchiveToDiskAsync(archive, destDir.path, asyncWrite: true);
65+
await extractArchiveToDisk(archive, destDir.path);
6666
} catch (e) {
6767
debugPrint("Error unpacking archive: $e");
6868
await destDir.delete(recursive: true);

0 commit comments

Comments
 (0)