未验证 提交 0a4d3697 编写于 作者: Y Yegor 提交者: GitHub

Allow custom CanvasKit URL (#19822)

上级 18f3aef1
......@@ -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.
///
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册