Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update README and CHANGELOG
  • Loading branch information
leiatfly committed Feb 21, 2024
commit f97b50aedd2718349178058a0debc9a1242280fd
5 changes: 5 additions & 0 deletions packages/flutter_markdown/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.6.21

* Adds `onSelectionChanged` to the constructors of `Markdown` and `MarkdownBody`.
* Documents the selection capabilities in README.

## 0.6.20

* Adds `textScaler` to `MarkdownStyleSheet`, and deprecates `textScaleFactor`.
Expand Down
9 changes: 9 additions & 0 deletions packages/flutter_markdown/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ but it's possible to create your own custom styling. Use the MarkdownStyle class
to pass in your own style. If you don't want to use Markdown outside of material
design, use the MarkdownRaw class.

## Selection

By default, Markdown is not selectable. A caller may use the following ways to
customize the selection behavior of Markdown:

* Set `selectable` to true, and use `onTapText` and `onSelectionChanged` to
handle tapping and selecting events.
* Set `selectable` to false, and wrap Markdown with [`SelectionArea`](https://api.flutter.dev/flutter/material/SelectionArea-class.html) or [`SelectionRegion`](https://api.flutter.dev/flutter/widgets/SelectableRegion-class.html).

## Emoji Support

Emoji glyphs can be included in the formatted text displayed by the Markdown
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_markdown/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Markdown renderer for Flutter. Create rich text output,
formatted with simple Markdown tags.
repository: https://github.com/flutter/packages/tree/main/packages/flutter_markdown
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_markdown%22
version: 0.6.20
version: 0.6.21

environment:
sdk: ^3.2.0
Expand Down