This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree 1 file changed +17
-12
lines changed
packages/flutter_tools/lib/src
1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -753,19 +753,24 @@ class ManifestAssetBundle implements AssetBundle {
753
753
}
754
754
}
755
755
756
- for (final Uri shaderUri in flutterManifest.shaders) {
757
- _parseAssetFromFile (
758
- packageConfig,
759
- flutterManifest,
760
- assetBase,
761
- cache,
762
- result,
763
- shaderUri,
764
- packageName: packageName,
765
- attributedPackage: attributedPackage,
766
- assetKind: AssetKind .shader,
767
- );
756
+ // TODO(jonahwilliams): re-enable this feature once
757
+ // flutter web is using engine compiled canvaskit.
758
+ if (targetPlatform != TargetPlatform .web_javascript) {
759
+ for (final Uri shaderUri in flutterManifest.shaders) {
760
+ _parseAssetFromFile (
761
+ packageConfig,
762
+ flutterManifest,
763
+ assetBase,
764
+ cache,
765
+ result,
766
+ shaderUri,
767
+ packageName: packageName,
768
+ attributedPackage: attributedPackage,
769
+ assetKind: AssetKind .shader,
770
+ );
771
+ }
768
772
}
773
+
769
774
// Add assets referenced in the fonts section of the manifest.
770
775
for (final Font font in flutterManifest.fonts) {
771
776
for (final FontAsset fontAsset in font.fontAssets) {
You can’t perform that action at this time.
0 commit comments