mirror of
https://gitlab.com/TheOneWithTheBraid/dart_pkpass.git
synced 2025-07-05 12:58:47 +00:00
fix: do not match scale if localization empty
Signed-off-by: The one with the braid <info@braid.business>
This commit is contained in:
parent
9e85dc1a8f
commit
d294a50ea4
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ abstract class FileMatcher {
|
|||
Locale? locale,
|
||||
}) {
|
||||
final localized = matchLocale(files: files, name: 'logo', extension: 'png');
|
||||
if (localized.isEmpty) return null;
|
||||
final scaled = matchScale(files: localized, name: 'logo', extension: 'png');
|
||||
final file = files.singleWhere((element) => element == scaled);
|
||||
return file;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue