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-08-05 13:55:34 +0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
097d3026123d774c123d3e48fc98eb5d253fd72c
097d3026
1 parent
c89ea74a
published ordered list color fixes
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
9 deletions
gpt_markdown/CHANGELOG.md
gpt_markdown/example/lib/main.dart
gpt_markdown/example/pubspec.lock
gpt_markdown/lib/markdown_component.dart
gpt_markdown/pubspec.yaml
gpt_markdown/CHANGELOG.md
View file @
097d302
## 0.1.7
*
ordered list color fixed.
## 0.1.6
*
`overflow`
perameter added.
...
...
gpt_markdown/example/lib/main.dart
View file @
097d302
...
...
@@ -178,8 +178,8 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex
debugPrint(url);
debugPrint(title);
},
maxLines: 7,
overflow: TextOverflow.ellipsis,
// maxLines: 7,
// overflow: TextOverflow.ellipsis,
textAlign: TextAlign.justify,
// textScaler: const TextScaler.linear(1.3),
textScaler: const TextScaler.linear(1),
...
...
gpt_markdown/example/pubspec.lock
View file @
097d302
...
...
@@ -182,7 +182,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.1.
6
"
version: "0.1.
7
"
http:
dependency: transitive
description:
...
...
gpt_markdown/lib/markdown_component.dart
View file @
097d302
...
...
@@ -381,16 +381,14 @@ class OrderedList extends BlockMd {
final
GptMarkdownConfig
config
,
)
{
var
match
=
exp
.
firstMatch
(
text
.
trim
());
var
conf
=
config
.
copyWith
(
style:
(
config
.
style
??
const
TextStyle
())
.
copyWith
(
fontWeight:
FontWeight
.
w100
));
return
OrderedListView
(
no:
"
${match?[1]}
"
,
textDirection:
config
.
textDirection
,
style:
conf
.
style
,
style:
(
config
.
style
??
const
TextStyle
())
.
copyWith
(
fontWeight:
FontWeight
.
w100
),
child:
MdWidget
(
"
${match?[2]}
"
,
config:
conf
,
config:
conf
ig
,
),
);
}
...
...
gpt_markdown/pubspec.yaml
View file @
097d302
name
:
gpt_markdown
description
:
"
The
purpose
of
this
package
is
to
render
the
response
of
ChatGPT
into
a
Flutter
app."
version
:
0.1.
6
version
:
0.1.
7
homepage
:
https://github.com/saminsohag/flutter_packages/tree/main/gpt_markdown
environment
:
...
...
Please
register
or
login
to post a comment