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-16 10:21:37 +0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4516fdbd8953d822c43a99f1cf472687ef69c40f
4516fdbd
1 parent
397e7643
Table heading improved
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
gpt_markdown/lib/md_widget.dart
gpt_markdown/lib/md_widget.dart
View file @
4516fdb
...
...
@@ -58,8 +58,10 @@ class MdWidget extends StatelessWidget {
.
asMap
(),
)
.
toList
();
bool
heading
=
RegExp
(
r"^\|.*?\|\n\|-[-\\ |]*?-\|\n"
).
hasMatch
(
eachLn
.
trim
());
bool
heading
=
RegExp
(
r"^\|.*?\|\n\|-[-\\ |]*?-\|$"
,
multiLine:
true
,
).
hasMatch
(
eachLn
.
trim
());
int
maxCol
=
0
;
for
(
final
each
in
value
)
{
if
(
maxCol
<
each
.
keys
.
length
)
{
...
...
@@ -100,7 +102,7 @@ class MdWidget extends StatelessWidget {
(
index
)
{
var
e
=
entry
.
value
;
String
data
=
e
[
index
]
??
""
;
if
(
RegExp
(
r"^--
-
+$"
).
hasMatch
(
data
.
trim
()))
{
if
(
RegExp
(
r"^--+$"
).
hasMatch
(
data
.
trim
()))
{
return
const
SizedBox
();
}
return
Center
(
...
...
Please
register
or
login
to post a comment