Showing
5 changed files
with
11 additions
and
13 deletions
| @@ -136,12 +136,7 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex | @@ -136,12 +136,7 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex | ||
| 136 | ), | 136 | ), |
| 137 | child: | 137 | child: |
| 138 | LayoutBuilder(builder: (context, constraints) { | 138 | LayoutBuilder(builder: (context, constraints) { |
| 139 | - return SingleChildScrollView( | ||
| 140 | - scrollDirection: Axis.horizontal, | ||
| 141 | - reverse: _direction == TextDirection.rtl, | ||
| 142 | - child: SizedBox( | ||
| 143 | - width: 550, | ||
| 144 | - child: Theme( | 139 | + return Theme( |
| 145 | data: Theme.of(context).copyWith( | 140 | data: Theme.of(context).copyWith( |
| 146 | textTheme: const TextTheme( | 141 | textTheme: const TextTheme( |
| 147 | // For H1. | 142 | // For H1. |
| @@ -166,16 +161,15 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex | @@ -166,16 +161,15 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex | ||
| 166 | log(url, name: "url"); | 161 | log(url, name: "url"); |
| 167 | }, | 162 | }, |
| 168 | textAlign: TextAlign.justify, | 163 | textAlign: TextAlign.justify, |
| 169 | - textScaler: | ||
| 170 | - MediaQuery.textScalerOf(context), | 164 | + textScaler: const TextScaler.linear(1.3), |
| 165 | + // textScaler: | ||
| 166 | + // MediaQuery.textScalerOf(context), | ||
| 171 | style: const TextStyle( | 167 | style: const TextStyle( |
| 172 | // Regular text font size here. | 168 | // Regular text font size here. |
| 173 | fontSize: 15, | 169 | fontSize: 15, |
| 174 | ), | 170 | ), |
| 175 | ), | 171 | ), |
| 176 | // child: const Text("Hello"), | 172 | // child: const Text("Hello"), |
| 177 | - ), | ||
| 178 | - ), | ||
| 179 | ); | 173 | ); |
| 180 | }), | 174 | }), |
| 181 | ); | 175 | ); |
| @@ -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.2" | 185 | + version: "0.0.3" |
| 186 | http: | 186 | http: |
| 187 | dependency: transitive | 187 | dependency: transitive |
| 188 | description: | 188 | description: |
| @@ -18,9 +18,9 @@ abstract class MarkdownComponent { | @@ -18,9 +18,9 @@ abstract class MarkdownComponent { | ||
| 18 | HrLine(), | 18 | HrLine(), |
| 19 | ImageMd(), | 19 | ImageMd(), |
| 20 | BoldMd(), | 20 | BoldMd(), |
| 21 | - ItalicMd(), | ||
| 22 | LatexMathMultyLine(), | 21 | LatexMathMultyLine(), |
| 23 | LatexMath(), | 22 | LatexMath(), |
| 23 | + ItalicMd(), | ||
| 24 | ATagMd(), | 24 | ATagMd(), |
| 25 | ]; | 25 | ]; |
| 26 | 26 |
| 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.2 | 3 | +version: 0.0.3 |
| 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