Showing
6 changed files
with
13 additions
and
9 deletions
@@ -161,7 +161,7 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex | @@ -161,7 +161,7 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex | ||
161 | }, | 161 | }, |
162 | textAlign: TextAlign.justify, | 162 | textAlign: TextAlign.justify, |
163 | // textScaler: const TextScaler.linear(1.3), | 163 | // textScaler: const TextScaler.linear(1.3), |
164 | - textScaler: MediaQuery.textScalerOf(context), | 164 | + textScaleFactor: 1.7, |
165 | style: const TextStyle( | 165 | style: const TextStyle( |
166 | // Regular text font size here. | 166 | // Regular text font size here. |
167 | fontSize: 15, | 167 | fontSize: 15, |
@@ -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.0.5" | 185 | + version: "0.0.6" |
186 | http: | 186 | http: |
187 | dependency: transitive | 187 | dependency: transitive |
188 | description: | 188 | description: |
@@ -14,7 +14,7 @@ class TexMarkdown extends StatelessWidget { | @@ -14,7 +14,7 @@ class TexMarkdown extends StatelessWidget { | ||
14 | this.textDirection = TextDirection.ltr, | 14 | this.textDirection = TextDirection.ltr, |
15 | this.latexWorkaround, | 15 | this.latexWorkaround, |
16 | this.textAlign, | 16 | this.textAlign, |
17 | - this.textScaler, | 17 | + this.textScaleFactor, |
18 | this.onLinkTab, | 18 | this.onLinkTab, |
19 | this.latexBuilder, | 19 | this.latexBuilder, |
20 | }); | 20 | }); |
@@ -22,7 +22,7 @@ class TexMarkdown extends StatelessWidget { | @@ -22,7 +22,7 @@ class TexMarkdown extends StatelessWidget { | ||
22 | final String data; | 22 | final String data; |
23 | final TextStyle? style; | 23 | final TextStyle? style; |
24 | final TextAlign? textAlign; | 24 | final TextAlign? textAlign; |
25 | - final TextScaler? textScaler; | 25 | + final double? textScaleFactor; |
26 | final void Function(String url, String title)? onLinkTab; | 26 | final void Function(String url, String title)? onLinkTab; |
27 | final String Function(String tex)? latexWorkaround; | 27 | final String Function(String tex)? latexWorkaround; |
28 | final Widget Function(BuildContext context, String tex)? latexBuilder; | 28 | final Widget Function(BuildContext context, String tex)? latexBuilder; |
@@ -37,7 +37,7 @@ class TexMarkdown extends StatelessWidget { | @@ -37,7 +37,7 @@ class TexMarkdown extends StatelessWidget { | ||
37 | style: style, | 37 | style: style, |
38 | onLinkTab: onLinkTab, | 38 | onLinkTab: onLinkTab, |
39 | textAlign: textAlign, | 39 | textAlign: textAlign, |
40 | - textScaler: textScaler, | 40 | + textScaleFactor: textScaleFactor, |
41 | followLinkColor: followLinkColor, | 41 | followLinkColor: followLinkColor, |
42 | latexWorkaround: latexWorkaround, | 42 | latexWorkaround: latexWorkaround, |
43 | latexBuilder: latexBuilder, | 43 | latexBuilder: latexBuilder, |
@@ -11,7 +11,7 @@ class MdWidget extends StatelessWidget { | @@ -11,7 +11,7 @@ class MdWidget extends StatelessWidget { | ||
11 | this.textDirection = TextDirection.ltr, | 11 | this.textDirection = TextDirection.ltr, |
12 | this.onLinkTab, | 12 | this.onLinkTab, |
13 | this.textAlign, | 13 | this.textAlign, |
14 | - this.textScaler, | 14 | + this.textScaleFactor, |
15 | this.latexWorkaround, | 15 | this.latexWorkaround, |
16 | this.latexBuilder, | 16 | this.latexBuilder, |
17 | this.followLinkColor = false}); | 17 | this.followLinkColor = false}); |
@@ -19,7 +19,7 @@ class MdWidget extends StatelessWidget { | @@ -19,7 +19,7 @@ class MdWidget extends StatelessWidget { | ||
19 | final TextDirection textDirection; | 19 | final TextDirection textDirection; |
20 | final TextStyle? style; | 20 | final TextStyle? style; |
21 | final TextAlign? textAlign; | 21 | final TextAlign? textAlign; |
22 | - final TextScaler? textScaler; | 22 | + final double? textScaleFactor; |
23 | final void Function(String url, String title)? onLinkTab; | 23 | final void Function(String url, String title)? onLinkTab; |
24 | final String Function(String tex)? latexWorkaround; | 24 | final String Function(String tex)? latexWorkaround; |
25 | final Widget Function(BuildContext context, String tex)? latexBuilder; | 25 | final Widget Function(BuildContext context, String tex)? latexBuilder; |
@@ -166,7 +166,7 @@ class MdWidget extends StatelessWidget { | @@ -166,7 +166,7 @@ class MdWidget extends StatelessWidget { | ||
166 | style: style?.copyWith(), | 166 | style: style?.copyWith(), |
167 | ), | 167 | ), |
168 | textDirection: textDirection, | 168 | textDirection: textDirection, |
169 | - textScaler: textScaler, | 169 | + textScaleFactor: textScaleFactor, |
170 | textAlign: textAlign, | 170 | textAlign: textAlign, |
171 | ); | 171 | ); |
172 | } | 172 | } |
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.0.5 | 3 | +version: 0.0.6 |
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