Skip to content

Commit

Permalink
fixup analysis warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-duncan committed Dec 12, 2024
1 parent 52f9cef commit baa495d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.4.0 - December 12, 2024

- Upgrade to Archive 4.0 dependency

## 4.3.0 - October 15, 2024

- Fix exceptions loading some PSD files.
Expand Down
3 changes: 1 addition & 2 deletions lib/src/font/bitmap_font.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'dart:typed_data';
import 'package:archive/archive.dart';
import 'package:xml/xml.dart';

Expand Down Expand Up @@ -206,7 +205,7 @@ class BitmapFont {
'$filename');
}

final image = PngDecoder().decode(imageFile.content as Uint8List);
final image = PngDecoder().decode(imageFile.content);

fontPages[id] = image;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/image/icc_profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class IccProfile {
if (compression == IccProfileCompression.none) {
return data;
}
data = const ZLibDecoder().decodeBytes(data) as Uint8List;
data = const ZLibDecoder().decodeBytes(data);
compression = IccProfileCompression.none;
return data;
}
Expand Down

0 comments on commit baa495d

Please sign in to comment.