Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
gpt_markdown
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David NAISSE
2025-01-09 13:41:29 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ca32d50eb64b664c5e260aa1bdb462406443d2ab
ca32d50e
1 parent
16073720
custom codebuilder without forced padding
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
example/lib/main.dart
example/lib/main.dart
View file @
ca32d50
...
...
@@ -401,6 +401,20 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex
);
},
);
codeBuilder: (context, name, code) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
child: Text(
code.trim(),
style: TextStyle(
fontFamily: '
JetBrains
Mono
',
fontSize: 14,
height: 1.5,
color: Theme.of(context).colorScheme.onSurface,
),
),
);
};
if (selectable) {
child = SelectionArea(
child: child,
...
...
Please
register
or
login
to post a comment