-
-
Save jonahwilliams/085dbcc8cf185bc0602b2c9904737557 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/packages/flutter_tools/lib/src/asset.dart b/packages/flutter_tools/lib/src/asset.dart | |
index 81dd56d75e..bea3526d4d 100644 | |
--- a/packages/flutter_tools/lib/src/asset.dart | |
+++ b/packages/flutter_tools/lib/src/asset.dart | |
@@ -413,8 +413,7 @@ class ManifestAssetBundle implements AssetBundle { | |
// For all platforms, include the shaders unconditionally. They are | |
// small, and whether they're used is determined only by the app source | |
// code and not by the Flutter manifest. | |
- if (targetPlatform != TargetPlatform.web_javascript) | |
- ..._getMaterialShaders(), | |
+ ..._getMaterialShaders(), | |
]; | |
for (final _Asset asset in materialAssets) { | |
final File assetFile = asset.lookupAssetFile(_fileSystem); | |
@@ -754,25 +753,19 @@ class ManifestAssetBundle implements AssetBundle { | |
); | |
} | |
} | |
- | |
- // TODO(jonahwilliams): re-enable this feature once | |
- // flutter web is using engine compiled canvaskit. | |
- if (targetPlatform != TargetPlatform.web_javascript) { | |
- for (final Uri shaderUri in flutterManifest.shaders) { | |
- _parseAssetFromFile( | |
- packageConfig, | |
- flutterManifest, | |
- assetBase, | |
- cache, | |
- result, | |
- shaderUri, | |
- packageName: packageName, | |
- attributedPackage: attributedPackage, | |
- assetKind: AssetKind.shader, | |
- ); | |
- } | |
+ for (final Uri shaderUri in flutterManifest.shaders) { | |
+ _parseAssetFromFile( | |
+ packageConfig, | |
+ flutterManifest, | |
+ assetBase, | |
+ cache, | |
+ result, | |
+ shaderUri, | |
+ packageName: packageName, | |
+ attributedPackage: attributedPackage, | |
+ assetKind: AssetKind.shader, | |
+ ); | |
} | |
- | |
for (final Uri modelUri in flutterManifest.models) { | |
_parseAssetFromFile( | |
packageConfig, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment