Skip to content

Commit 1cd499e

Browse files
authored
[flutter_markdown] enable Wasm support (#8120)
Fix directive in widget code
1 parent c53e5c4 commit 1cd499e

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/flutter_markdown/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.7.4+2
2+
3+
* Fixes pub.dev detection of WebAssembly support.
4+
15
## 0.7.4+1
26

37
* Makes it so that custom blocks are not limited to being a Column or

packages/flutter_markdown/lib/src/widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'package:flutter/rendering.dart';
1010
import 'package:markdown/markdown.dart' as md;
1111

1212
import '../flutter_markdown.dart';
13-
import '_functions_io.dart' if (dart.library.html) '_functions_web.dart';
13+
import '_functions_io.dart' if (dart.library.js_interop) '_functions_web.dart';
1414

1515
/// Signature for callbacks used by [MarkdownWidget] when
1616
/// [MarkdownWidget.selectable] is set to true and the user changes selection.

packages/flutter_markdown/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A Markdown renderer for Flutter. Create rich text output,
44
formatted with simple Markdown tags.
55
repository: https://github.com/flutter/packages/tree/main/packages/flutter_markdown
66
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_markdown%22
7-
version: 0.7.4+1
7+
version: 0.7.4+2
88

99
environment:
1010
sdk: ^3.3.0

0 commit comments

Comments
 (0)