Update version to 1.0.15, improve performance, and enhance unOrderedListBuilder …
…functionality for better list rendering.
Showing
3 changed files
with
11 additions
and
3 deletions
| @@ -2,7 +2,7 @@ part of 'gpt_markdown.dart'; | @@ -2,7 +2,7 @@ part of 'gpt_markdown.dart'; | ||
| 2 | 2 | ||
| 3 | /// Markdown components | 3 | /// Markdown components |
| 4 | abstract class MarkdownComponent { | 4 | abstract class MarkdownComponent { |
| 5 | - static List<MarkdownComponent> get components => [ | 5 | + static final List<MarkdownComponent> components = [ |
| 6 | CodeBlockMd(), | 6 | CodeBlockMd(), |
| 7 | NewLines(), | 7 | NewLines(), |
| 8 | IndentMd(), | 8 | IndentMd(), |
| @@ -332,7 +332,11 @@ class UnOrderedList extends BlockMd { | @@ -332,7 +332,11 @@ class UnOrderedList extends BlockMd { | ||
| 332 | 332 | ||
| 333 | var child = MdWidget("${match?[1]?.trim()}", config: config); | 333 | var child = MdWidget("${match?[1]?.trim()}", config: config); |
| 334 | 334 | ||
| 335 | - return config.unOrderedListBuilder?.call(context, child, config) ?? | 335 | + return config.unOrderedListBuilder?.call( |
| 336 | + context, | ||
| 337 | + child, | ||
| 338 | + config.copyWith(), | ||
| 339 | + ) ?? | ||
| 336 | UnorderedListView( | 340 | UnorderedListView( |
| 337 | bulletColor: | 341 | bulletColor: |
| 338 | (config.style?.color ?? DefaultTextStyle.of(context).style.color), | 342 | (config.style?.color ?? DefaultTextStyle.of(context).style.color), |
| 1 | name: gpt_markdown | 1 | name: gpt_markdown |
| 2 | description: "Powerful Markdown & LaTeX Renderer for Flutter: Rich Text, Math, Tables, Links, and Text Selection. Ideal for ChatGPT, Gemini, and more." | 2 | description: "Powerful Markdown & LaTeX Renderer for Flutter: Rich Text, Math, Tables, Links, and Text Selection. Ideal for ChatGPT, Gemini, and more." |
| 3 | -version: 1.0.14 | 3 | +version: 1.0.15 |
| 4 | homepage: https://github.com/Infinitix-LLC/gpt_markdown | 4 | homepage: https://github.com/Infinitix-LLC/gpt_markdown |
| 5 | 5 | ||
| 6 | environment: | 6 | environment: |
-
Please register or login to post a comment