Skip to content
Prev Previous commit
nits
  • Loading branch information
tarrinneal committed Jul 7, 2023
commit 3972f7cbb6a68fb56f3e9e4b4bb0452199f93dbc
8 changes: 3 additions & 5 deletions packages/flutter_markdown/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
## 0.6.17

* Introduce a new `MarkdownElementBuilder.visitElementAfterWithContext()` method passing the widget `BuildContext` and
the parent texts' `TextStyle`.
This should allow custom syntax implementations to get data from the current context, as well as properly style any
text, e.g. a color syntax can make parts of a headline colored, while still keeping the font size of the headline.
* Introduces a new `MarkdownElementBuilder.visitElementAfterWithContext()` method passing the widget `BuildContext` and
the parent text's `TextStyle`.

## 0.6.16
## 0.6.16

* Adds `tableVerticalAlignment` property to allow aligning table cells vertically.

Expand Down
8 changes: 4 additions & 4 deletions packages/flutter_markdown/lib/src/widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ abstract class MarkdownElementBuilder {
/// Called when an Element has been reached, after its children have been
/// visited.
///
/// If [MarkdownWidget.styleSheet] has a style of this tag, will passing
/// to [preferredStyle].
/// If [MarkdownWidget.styleSheet] has a style with this tag, it will be
/// passed as [preferredStyle].
///
/// If parent element has [TextStyle]'s set, it will be passed as
/// If parent element has [TextStyle] set, it will be passed as
/// [parentStyle].
///
/// If you needn't build a widget, return null.
/// If a widget build isn't needed, return null.
Widget? visitElementAfterWithContext(
BuildContext context,
md.Element element,
Expand Down