diff --git a/packages/ubuntu_utils/lib/src/proxy_asset_bundle.dart b/packages/ubuntu_utils/lib/src/proxy_asset_bundle.dart index b9c479c83..b7fe48fe8 100644 --- a/packages/ubuntu_utils/lib/src/proxy_asset_bundle.dart +++ b/packages/ubuntu_utils/lib/src/proxy_asset_bundle.dart @@ -29,11 +29,10 @@ class ProxyAssetBundle extends AssetBundle { } String _findAsset(String assetName, {required String package}) { - if (p.isWithin('packages/$package', assetName)) { - return _findAsset( - p.relative(assetName, from: 'packages/$package'), - package: package, - ); + if (p.isWithin('packages/', assetName)) { + final candidate = + _findAsset(p.split(assetName).skip(2).join('/'), package: package); + if (File(candidate).existsSync()) return candidate; } // /data/flutter_assets/