Commit 2fd909b
authored
[vector_garphics] fix execution on the web with WebAssembly (flutter#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 instead1 parent 7287c7b commit 2fd909b
File tree
3 files changed
+6
-2
lines changed- packages/vector_graphics
- lib/src
3 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments