mirror of
https://gitlab.com/TheOneWithTheBraid/dart_pkpass.git
synced 2025-07-05 12:58:47 +00:00
Merge branch 'scaled-logo' into 'main'
fix: use scale when matching files Closes #2 See merge request TheOneWithTheBraid/dart_pkpass!4
This commit is contained in:
commit
f07a5eec80
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ abstract class FileMatcher {
|
|||
}) {
|
||||
final localized = matchLocale(files: files, name: 'logo', extension: 'png');
|
||||
if (localized.isEmpty) return null;
|
||||
final scaled = matchScale(files: localized, name: 'logo', extension: 'png');
|
||||
final scaled = matchScale(files: localized, name: 'logo', extension: 'png', scale: scale);
|
||||
final file = files.singleWhere((element) => element == scaled);
|
||||
return file;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue