Skip to content

Commit

Permalink
changed archive version to ^4.0.2 (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
quaaantumdev committed Dec 31, 2024
1 parent 00e9ff0 commit 6dcb88e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/src/excel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Excel {
}

factory Excel.decodeBuffer(InputStream input) {
return _newExcel(ZipDecoder().decodeBuffer(input));
return _newExcel(ZipDecoder().decodeStream(input));
}

///
Expand Down
8 changes: 5 additions & 3 deletions lib/src/utilities/archive.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ Archive _cloneArchive(
if (_archiveFiles.containsKey(file.name)) {
copy = _archiveFiles[file.name]!;
} else {
var content = file.content as Uint8List;
var compress = !_noCompression.contains(file.name);
var content = file.content;
var compression = _noCompression.contains(file.name)
? CompressionType.none
: CompressionType.deflate;
copy = ArchiveFile(file.name, content.length, content)
..compress = compress;
..compression = compression;
}
clone.addFile(copy);
}
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: excel
description: A flutter and dart library for reading, creating, editing and updating excel sheets with compatible both on client and server side.
version: 4.0.6
version: 4.0.7
homepage: https://github.com/justkawal/excel
topics:
- excel
Expand All @@ -13,7 +13,7 @@ environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
archive: ^3.6.1
archive: ^4.0.2
xml: ">=5.0.0 <7.0.0"
collection: ^1.15.0
equatable: ^2.0.0
Expand Down

0 comments on commit 6dcb88e

Please sign in to comment.