Skip to content

Commit a4054b8

Browse files
update dependency
1 parent 33ff3df commit a4054b8

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

packages/core/lib/generators/integrations/image_integration.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,10 @@ ${isPackage ? "\n static const String package = '$packageName';" : ''}
157157
/// Extract metadata from the asset.
158158
ImageMetadata? _getMetadata(AssetType asset) {
159159
try {
160-
final size = ImageSizeGetter.getSize(FileInput(File(asset.fullPath)));
161-
return ImageMetadata(size.width.toDouble(), size.height.toDouble());
160+
final size =
161+
ImageSizeGetter.getSizeResult(FileInput(File(asset.fullPath)));
162+
return ImageMetadata(
163+
size.size.width.toDouble(), size.size.height.toDouble());
162164
} catch (e) {
163165
stderr
164166
.writeln('[WARNING] Failed to parse \'${asset.path}\' metadata: $e');

packages/core/lib/generators/integrations/lottie_integration.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ ${isPackage ? "\n static const String package = '$packageName';" : ''}
125125
}
126126
if (asset.mime == 'application/zip') {
127127
final inputStream = InputFileStream(asset.fullPath);
128-
final archive = ZipDecoder().decodeBuffer(inputStream);
128+
final archive = ZipDecoder().decodeStream(inputStream);
129129
final jsonFile = archive.files.firstWhereOrNull(
130130
(e) => e.name.endsWith('.json'),
131131
);

packages/core/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ dependencies:
1616
meta: ^1.7.0
1717
path: ^1.8.0
1818
yaml: ^3.0.0
19-
mime: '>=1.0.0 <3.0.0'
19+
mime: ">=1.0.0 <3.0.0"
2020
xml: ^6.0.0
2121
dartx: ^1.0.0
2222
color: ^3.0.0
2323
collection: ^1.15.0
2424
json_annotation: ^4.4.0
2525
glob: ^2.0.0
2626

27-
dart_style: '>=2.2.4 <4.0.0'
28-
archive: ^3.4.0
27+
dart_style: ">=2.2.4 <4.0.0"
28+
archive: ^4.0.2
2929
args: ^2.0.0
3030
pub_semver: ^2.0.0
3131
vector_graphics_compiler: ^1.1.9

0 commit comments

Comments
 (0)