diff --git a/CHANGELOG.md b/CHANGELOG.md index 22d5fe9d..3ad40e0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/lib/src/font/bitmap_font.dart b/lib/src/font/bitmap_font.dart index e3ae4d2a..2f25e948 100644 --- a/lib/src/font/bitmap_font.dart +++ b/lib/src/font/bitmap_font.dart @@ -1,4 +1,3 @@ -import 'dart:typed_data'; import 'package:archive/archive.dart'; import 'package:xml/xml.dart'; @@ -206,7 +205,7 @@ class BitmapFont { '$filename'); } - final image = PngDecoder().decode(imageFile.content as Uint8List); + final image = PngDecoder().decode(imageFile.content); fontPages[id] = image; } diff --git a/lib/src/image/icc_profile.dart b/lib/src/image/icc_profile.dart index 036285b9..616564ca 100644 --- a/lib/src/image/icc_profile.dart +++ b/lib/src/image/icc_profile.dart @@ -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; }