Commit d8d0d6b3 authored by Jason Simmons's avatar Jason Simmons

Resolve package references in font asset paths (#4334)

parent 868a4b18
......@@ -188,7 +188,12 @@ Map<_Asset, List<_Asset>> _parseAssets(
String asset = font['asset'];
if (asset == null) continue;
_Asset baseAsset = new _Asset(base: assetBase, relativePath: asset);
_Asset baseAsset = _resolveAsset(packageMap, assetBase, asset);
if (!baseAsset.assetFileExists) {
printError('Error: unable to locate asset entry in flutter.yaml: "$asset".');
return null;
}
result[baseAsset] = <_Asset>[];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment