Always use the canvaskit path from the web sdk. (#123915)

Always use the canvaskit path from the web sdk.
This commit is contained in:
Jackson Gardner
2023-04-04 15:36:43 -07:00
committed by GitHub
parent 842873c2fc
commit 37d4e7d60e
5 changed files with 30 additions and 39 deletions

View File

@@ -221,9 +221,9 @@ class FlutterWebPlatform extends PlatformPlugin {
));
File _canvasKitFile(String relativePath) {
final String canvasKitPath = _artifacts!.getArtifactPath(
Artifact.canvasKitPath,
platform: TargetPlatform.web_javascript,
final String canvasKitPath = _fileSystem.path.join(
_artifacts!.getHostArtifact(HostArtifact.flutterWebSdk).path,
'canvaskit',
);
final File canvasKitFile = _fileSystem.file(_fileSystem.path.join(
canvasKitPath,