diff --git a/packages/flutter_tools/lib/src/flx.dart b/packages/flutter_tools/lib/src/flx.dart index 8f2bdf8a4e..f22d9f35e5 100644 --- a/packages/flutter_tools/lib/src/flx.dart +++ b/packages/flutter_tools/lib/src/flx.dart @@ -88,7 +88,6 @@ Future build({ bool includeRobotoFonts: true, bool reportLicensedPackages: false }) async { - snapshotterPath ??= artifacts.getArtifactPath(Artifact.skySnapshot); outputPath ??= defaultFlxOutputPath; kernelPath ??= defaultKernelPath; snapshotPath ??= defaultSnapshotPath; @@ -111,7 +110,7 @@ Future build({ // In a precompiled snapshot, the instruction buffer contains script // content equivalents int result = await createSnapshot( - snapshotterPath: snapshotterPath, + snapshotterPath: snapshotterPath ?? artifacts.getArtifactPath(Artifact.skySnapshot), mainPath: mainPath, snapshotPath: snapshotPath, depfilePath: depfilePath,