From 165226bee1cbc515a7311e3d7f74f9d1afd677d8 Mon Sep 17 00:00:00 2001 From: The one with the braid Date: Sat, 26 Aug 2023 23:10:10 +0200 Subject: [PATCH] chore: style Signed-off-by: The one with the braid --- lib/src/file_matcher.dart | 2 -- lib/src/pass_file.dart | 6 +++++- test/pkpass_test.dart | 6 +++++- 3 files changed, 10 insertions(+), 4 deletions(-) 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', () {