File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
lib/generators/integrations Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff 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 ' );
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments