Fix custom fonts on Windows (#14191)

Fixes https://github.com/flutter/flutter/issues/13870.
This commit is contained in:
Michael Goderbauer
2018-01-22 10:00:27 -08:00
committed by GitHub
parent 159db5ca44
commit 733bd04904
6 changed files with 68 additions and 1 deletions

View File

@@ -118,7 +118,7 @@ class AssetBundle {
for (String packageName in packageMap.map.keys) {
final Uri package = packageMap.map[packageName];
if (package != null && package.scheme == 'file') {
final String packageManifestPath = package.resolve('../pubspec.yaml').path;
final String packageManifestPath = fs.path.fromUri(package.resolve('../pubspec.yaml'));
final FlutterManifest packageFlutterManifest = await FlutterManifest.createFromPath(packageManifestPath);
if (packageFlutterManifest == null)
continue;