Allow custom CanvasKit URL (flutter/engine#19822)

This commit is contained in:
Yegor 2020-07-17 16:44:57 -07:00 committed by GitHub
parent a8b8af3a72
commit 88a5bfb010

View File

@ -17,7 +17,10 @@ const bool canvasKitForceCpuOnly =
/// When CanvasKit pushes a new release to NPM, update this URL to reflect the
/// most recent version. For example, if CanvasKit releases version 0.34.0 to
/// NPM, update this URL to `https://unpkg.com/canvaskit-wasm@0.34.0/bin/`.
const String canvasKitBaseUrl = 'https://unpkg.com/canvaskit-wasm@0.16.2/bin/';
const String canvasKitBaseUrl = String.fromEnvironment(
'FLUTTER_WEB_CANVASKIT_URL',
defaultValue: 'https://unpkg.com/canvaskit-wasm@0.16.2/bin/',
);
/// Initialize CanvasKit.
///