Skip to content

Commit 2fd909b

Browse files
authored
[vector_garphics] fix execution on the web with WebAssembly (#7991)
The `dart.library.html` variable is not available with wasm Since the web version is (currently) a no-op, flip the condition to check for dart:io instead
1 parent 7287c7b commit 2fd909b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/vector_graphics/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.13
2+
3+
* Fix execution on the web with WebAssembly.
4+
15
## 1.1.12
26

37
* Transfers the package source from https://github.com/dnfield/vector_graphics

packages/vector_graphics/lib/src/debug.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
export '_debug_io.dart' if (dart.library.html) '_debug_web.dart';
5+
export '_debug_web.dart' if (dart.library.io) '_debug_io.dart';

packages/vector_graphics/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/vector_graphi
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+vector_graphics%22
55
# See https://github.com/flutter/flutter/issues/157626 before publishing a new
66
# version.
7-
version: 1.1.12
7+
version: 1.1.13
88

99
environment:
1010
sdk: ^3.4.0

0 commit comments

Comments
 (0)