Showing
1 changed file
with
18 additions
and
11 deletions
| @@ -186,22 +186,29 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex | @@ -186,22 +186,29 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex | ||
| 186 | return TexMarkdown(tableString); | 186 | return TexMarkdown(tableString); |
| 187 | } | 187 | } |
| 188 | var controller = ScrollController(); | 188 | var controller = ScrollController(); |
| 189 | - return Column( | ||
| 190 | - children: [ | ||
| 191 | - Scrollbar( | ||
| 192 | - controller: controller, | ||
| 193 | - child: SingleChildScrollView( | 189 | + return Padding( |
| 190 | + padding: const EdgeInsets.all(0.0), | ||
| 191 | + child: Material( | ||
| 192 | + color: Theme.of(context) | ||
| 193 | + .colorScheme | ||
| 194 | + .onInverseSurface, | ||
| 195 | + child: Padding( | ||
| 196 | + padding: const EdgeInsets.all(8.0), | ||
| 197 | + child: Scrollbar( | ||
| 194 | controller: controller, | 198 | controller: controller, |
| 195 | - scrollDirection: Axis.horizontal, | ||
| 196 | - child: Math.tex( | ||
| 197 | - tex, | ||
| 198 | - textStyle: const TextStyle( | ||
| 199 | - fontSize: 17, | 199 | + child: SingleChildScrollView( |
| 200 | + controller: controller, | ||
| 201 | + scrollDirection: Axis.horizontal, | ||
| 202 | + child: Math.tex( | ||
| 203 | + tex, | ||
| 204 | + textStyle: const TextStyle( | ||
| 205 | + fontSize: 17, | ||
| 206 | + ), | ||
| 200 | ), | 207 | ), |
| 201 | ), | 208 | ), |
| 202 | ), | 209 | ), |
| 203 | ), | 210 | ), |
| 204 | - ], | 211 | + ), |
| 205 | ); | 212 | ); |
| 206 | }, | 213 | }, |
| 207 | ), | 214 | ), |
-
Please register or login to post a comment