Showing
1 changed file
with
14 additions
and
0 deletions
@@ -401,6 +401,20 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex | @@ -401,6 +401,20 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex | ||
401 | ); | 401 | ); |
402 | }, | 402 | }, |
403 | ); | 403 | ); |
404 | + codeBuilder: (context, name, code) { | ||
405 | + return Padding( | ||
406 | + padding: const EdgeInsets.symmetric(horizontal: 16), | ||
407 | + child: Text( | ||
408 | + code.trim(), | ||
409 | + style: TextStyle( | ||
410 | + fontFamily: 'JetBrains Mono', | ||
411 | + fontSize: 14, | ||
412 | + height: 1.5, | ||
413 | + color: Theme.of(context).colorScheme.onSurface, | ||
414 | + ), | ||
415 | + ), | ||
416 | + ); | ||
417 | + }; | ||
404 | if (selectable) { | 418 | if (selectable) { |
405 | child = SelectionArea( | 419 | child = SelectionArea( |
406 | child: child, | 420 | child: child, |
-
Please register or login to post a comment