Skip to content

Commit

Permalink
Bugfix package assets path (#321)
Browse files Browse the repository at this point in the history
* bugfix: replace the path field with the correct one

* fix unit test issues

Co-authored-by: Daichi Furiya <dadadada.chop@gmail.com>
  • Loading branch information
jinaiyuanbaojie and wasabeef committed Oct 20, 2022
1 parent 782c42e commit e4187f3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Expand Up @@ -56,7 +56,7 @@ class FlareIntegration extends Integration {
);
}
String get path => _assetName;
String get path => ${packageExpression == null ? '_assetName' : '\'$packageExpression\$_assetName\''};
}''';

@override
Expand Down
Expand Up @@ -87,7 +87,7 @@ class LottieIntegration extends Integration {
);
}
String get path => _assetName;
String get path => ${packageParameterLiteral.isEmpty ? '_assetName' : '\'packages/$packageParameterLiteral/\$_assetName\''};
}''';

@override
Expand Down
Expand Up @@ -47,7 +47,7 @@ class RiveIntegration extends Integration {
);
}
String get path => _assetName;
String get path => ${packageExpression == null ? '_assetName' : '\'$packageExpression\$_assetName\''};
}''';

@override
Expand Down
Expand Up @@ -64,7 +64,7 @@ class SvgIntegration extends Integration {
);
}
String get path => _assetName;
String get path => ${packageParameterLiteral.isEmpty ? '_assetName' : '\'packages/$packageParameterLiteral/\$_assetName\''};
}''';

@override
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e4187f3

Please sign in to comment.