saminsohag

published ordered list color fixes

  1 +## 0.1.7
  2 +
  3 +* ordered list color fixed.
  4 +
1 ## 0.1.6 5 ## 0.1.6
2 6
3 * `overflow` perameter added. 7 * `overflow` perameter added.
@@ -178,8 +178,8 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex @@ -178,8 +178,8 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex
178 debugPrint(url); 178 debugPrint(url);
179 debugPrint(title); 179 debugPrint(title);
180 }, 180 },
181 - maxLines: 7,  
182 - overflow: TextOverflow.ellipsis, 181 + // maxLines: 7,
  182 + // overflow: TextOverflow.ellipsis,
183 textAlign: TextAlign.justify, 183 textAlign: TextAlign.justify,
184 // textScaler: const TextScaler.linear(1.3), 184 // textScaler: const TextScaler.linear(1.3),
185 textScaler: const TextScaler.linear(1), 185 textScaler: const TextScaler.linear(1),
@@ -182,7 +182,7 @@ packages: @@ -182,7 +182,7 @@ packages:
182 path: ".." 182 path: ".."
183 relative: true 183 relative: true
184 source: path 184 source: path
185 - version: "0.1.6" 185 + version: "0.1.7"
186 http: 186 http:
187 dependency: transitive 187 dependency: transitive
188 description: 188 description:
@@ -381,16 +381,14 @@ class OrderedList extends BlockMd { @@ -381,16 +381,14 @@ class OrderedList extends BlockMd {
381 final GptMarkdownConfig config, 381 final GptMarkdownConfig config,
382 ) { 382 ) {
383 var match = exp.firstMatch(text.trim()); 383 var match = exp.firstMatch(text.trim());
384 - var conf = config.copyWith(  
385 - style: (config.style ?? const TextStyle())  
386 - .copyWith(fontWeight: FontWeight.w100));  
387 return OrderedListView( 384 return OrderedListView(
388 no: "${match?[1]}", 385 no: "${match?[1]}",
389 textDirection: config.textDirection, 386 textDirection: config.textDirection,
390 - style: conf.style, 387 + style: (config.style ?? const TextStyle())
  388 + .copyWith(fontWeight: FontWeight.w100),
391 child: MdWidget( 389 child: MdWidget(
392 "${match?[2]}", 390 "${match?[2]}",
393 - config: conf, 391 + config: config,
394 ), 392 ),
395 ); 393 );
396 } 394 }
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.6 3 +version: 0.1.7
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: