Showing
5 changed files
with
15 additions
and
6 deletions
@@ -236,6 +236,7 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex | @@ -236,6 +236,7 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex | ||
236 | textScaler: const TextScaler.linear(1), | 236 | textScaler: const TextScaler.linear(1), |
237 | style: const TextStyle( | 237 | style: const TextStyle( |
238 | // Regular text font size here. | 238 | // Regular text font size here. |
239 | + color: Colors.red, | ||
239 | fontSize: 15, | 240 | fontSize: 15, |
240 | ), | 241 | ), |
241 | latexWorkaround: (tex) { | 242 | latexWorkaround: (tex) { |
@@ -190,7 +190,7 @@ packages: | @@ -190,7 +190,7 @@ packages: | ||
190 | path: ".." | 190 | path: ".." |
191 | relative: true | 191 | relative: true |
192 | source: path | 192 | source: path |
193 | - version: "0.1.7" | 193 | + version: "0.1.8" |
194 | http: | 194 | http: |
195 | dependency: transitive | 195 | dependency: transitive |
196 | description: | 196 | description: |
@@ -624,10 +624,10 @@ packages: | @@ -624,10 +624,10 @@ packages: | ||
624 | dependency: transitive | 624 | dependency: transitive |
625 | description: | 625 | description: |
626 | name: vm_service | 626 | name: vm_service |
627 | - sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc | 627 | + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" |
628 | url: "https://pub.dev" | 628 | url: "https://pub.dev" |
629 | source: hosted | 629 | source: hosted |
630 | - version: "14.2.4" | 630 | + version: "14.2.5" |
631 | watcher: | 631 | watcher: |
632 | dependency: "direct main" | 632 | dependency: "direct main" |
633 | description: | 633 | description: |
@@ -355,9 +355,13 @@ class UnOrderedList extends BlockMd { | @@ -355,9 +355,13 @@ class UnOrderedList extends BlockMd { | ||
355 | ) { | 355 | ) { |
356 | var match = exp.firstMatch(text); | 356 | var match = exp.firstMatch(text); |
357 | return UnorderedListView( | 357 | return UnorderedListView( |
358 | - bulletColor: config.style?.color, | 358 | + bulletColor: |
359 | + config.style?.color ?? DefaultTextStyle.of(context).style.color, | ||
359 | padding: 10.0, | 360 | padding: 10.0, |
360 | - bulletSize: 3, | 361 | + bulletSize: 0.2 * |
362 | + (config.style?.fontSize ?? | ||
363 | + DefaultTextStyle.of(context).style.fontSize ?? | ||
364 | + kDefaultFontSize), | ||
361 | textDirection: config.textDirection, | 365 | textDirection: config.textDirection, |
362 | child: MdWidget( | 366 | child: MdWidget( |
363 | "${match?[1]}", | 367 | "${match?[1]}", |
1 | name: gpt_markdown | 1 | name: gpt_markdown |
2 | description: "The purpose of this package is to render the response of ChatGPT into a Flutter app." | 2 | description: "The purpose of this package is to render the response of ChatGPT into a Flutter app." |
3 | -version: 0.1.7 | 3 | +version: 0.1.8 |
4 | homepage: https://github.com/saminsohag/flutter_packages/tree/main/gpt_markdown | 4 | homepage: https://github.com/saminsohag/flutter_packages/tree/main/gpt_markdown |
5 | 5 | ||
6 | environment: | 6 | environment: |
-
Please register or login to post a comment