diff --git a/lib/src/file_matcher.dart b/lib/src/file_matcher.dart index 8810eca..c960064 100644 --- a/lib/src/file_matcher.dart +++ b/lib/src/file_matcher.dart @@ -1,5 +1,3 @@ -import 'dart:typed_data'; - import 'package:intl/locale.dart'; abstract class FileMatcher { diff --git a/lib/src/pass_file.dart b/lib/src/pass_file.dart index dbad1db..2057112 100644 --- a/lib/src/pass_file.dart +++ b/lib/src/pass_file.dart @@ -83,7 +83,11 @@ class PassFile { }) { final files = _folder.map((e) => e.name).toList(); final path = FileMatcher.matchFile( - files: files, name: name, scale: scale, locale: locale); + files: files, + name: name, + scale: scale, + locale: locale, + ); if (path == null) return null; final file = _folder.singleWhere((element) => element.name == path); final content = file.rawContent?.toUint8List() ?? file.content as Uint8List; diff --git a/test/pkpass_test.dart b/test/pkpass_test.dart index af57674..b22f0d4 100644 --- a/test/pkpass_test.dart +++ b/test/pkpass_test.dart @@ -109,7 +109,11 @@ void main() { extension: 'png', ); final scaled = FileMatcher.matchScale( - files: localized, name: 'logo', extension: 'png', scale: 6); + files: localized, + name: 'logo', + extension: 'png', + scale: 6, + ); expect(scaled, 'logo@4x.png'); }); test('matchScale biggest neighbor', () {