Skip to content

Commit

Permalink
fix: widget snapshots not working properly with WASM (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
knopp authored Nov 13, 2024
1 parent 6b1c8fb commit 1250d81
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import 'dart:js_interop' as js;
import 'dart:js_interop_unsafe';

import 'package:flutter/foundation.dart';

final isCanvasKit = js.globalContext['flutterCanvasKit'] != null;

bool snapshotToImageSupportedInternal() {
return isCanvasKit;
return isCanvasKit || kIsWasm;
}

0 comments on commit 1250d81

Please sign in to comment.