mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Allow custom CanvasKit URL (flutter/engine#19822)
This commit is contained in:
parent
a8b8af3a72
commit
88a5bfb010
@ -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.
|
||||
///
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user