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
saminsohag
2024-02-18 21:17:08 +0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
20dcd75bbe96d33a74b6afcb3987084ddee2d072
20dcd75b
1 parent
1ca575b3
Added some material around the Math.tex and some padding
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
gpt_markdown/example/lib/main.dart
gpt_markdown/example/lib/main.dart
View file @
20dcd75
...
...
@@ -186,22 +186,29 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex
return TexMarkdown(tableString);
}
var controller = ScrollController();
return Column(
children: [
Scrollbar(
controller: controller,
child: SingleChildScrollView(
return Padding(
padding: const EdgeInsets.all(0.0),
child: Material(
color: Theme.of(context)
.colorScheme
.onInverseSurface,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Scrollbar(
controller: controller,
scrollDirection: Axis.horizontal,
child: Math.tex(
tex,
textStyle: const TextStyle(
fontSize: 17,
child: SingleChildScrollView(
controller: controller,
scrollDirection: Axis.horizontal,
child: Math.tex(
tex,
textStyle: const TextStyle(
fontSize: 17,
),
),
),
),
),
]
,
)
,
);
},
),
...
...
Please
register
or
login
to post a comment