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-17 07:30:22 +0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
414cd6b6ac337770563240d4d19ec9fda7165153
414cd6b6
1 parent
ece78dad
text_scaller_fixed
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
9 deletions
gpt_markdown/CHANGELOG.md
gpt_markdown/example/lib/main.dart
gpt_markdown/example/pubspec.lock
gpt_markdown/lib/gpt_markdown.dart
gpt_markdown/lib/md_widget.dart
gpt_markdown/pubspec.yaml
gpt_markdown/CHANGELOG.md
View file @
414cd6b
## 0.0.6
*
Fixed textScaler problem by removeing that and added textScaleFector.
## 0.0.5
*
Latex table workarround added.
...
...
gpt_markdown/example/lib/main.dart
View file @
414cd6b
...
...
@@ -161,7 +161,7 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex
},
textAlign: TextAlign.justify,
// textScaler: const TextScaler.linear(1.3),
textScale
r: MediaQuery.textScalerOf(context)
,
textScale
Factor: 1.7
,
style: const TextStyle(
// Regular text font size here.
fontSize: 15,
...
...
gpt_markdown/example/pubspec.lock
View file @
414cd6b
...
...
@@ -182,7 +182,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.
5
"
version: "0.0.
6
"
http:
dependency: transitive
description:
...
...
gpt_markdown/lib/gpt_markdown.dart
View file @
414cd6b
...
...
@@ -14,7 +14,7 @@ class TexMarkdown extends StatelessWidget {
this
.
textDirection
=
TextDirection
.
ltr
,
this
.
latexWorkaround
,
this
.
textAlign
,
this
.
textScaler
,
this
.
textScale
Facto
r
,
this
.
onLinkTab
,
this
.
latexBuilder
,
});
...
...
@@ -22,7 +22,7 @@ class TexMarkdown extends StatelessWidget {
final
String
data
;
final
TextStyle
?
style
;
final
TextAlign
?
textAlign
;
final
TextScaler
?
textScale
r
;
final
double
?
textScaleFacto
r
;
final
void
Function
(
String
url
,
String
title
)?
onLinkTab
;
final
String
Function
(
String
tex
)?
latexWorkaround
;
final
Widget
Function
(
BuildContext
context
,
String
tex
)?
latexBuilder
;
...
...
@@ -37,7 +37,7 @@ class TexMarkdown extends StatelessWidget {
style:
style
,
onLinkTab:
onLinkTab
,
textAlign:
textAlign
,
textScale
r:
textScale
r
,
textScale
Factor:
textScaleFacto
r
,
followLinkColor:
followLinkColor
,
latexWorkaround:
latexWorkaround
,
latexBuilder:
latexBuilder
,
...
...
gpt_markdown/lib/md_widget.dart
View file @
414cd6b
...
...
@@ -11,7 +11,7 @@ class MdWidget extends StatelessWidget {
this
.
textDirection
=
TextDirection
.
ltr
,
this
.
onLinkTab
,
this
.
textAlign
,
this
.
textScaler
,
this
.
textScale
Facto
r
,
this
.
latexWorkaround
,
this
.
latexBuilder
,
this
.
followLinkColor
=
false
});
...
...
@@ -19,7 +19,7 @@ class MdWidget extends StatelessWidget {
final
TextDirection
textDirection
;
final
TextStyle
?
style
;
final
TextAlign
?
textAlign
;
final
TextScaler
?
textScale
r
;
final
double
?
textScaleFacto
r
;
final
void
Function
(
String
url
,
String
title
)?
onLinkTab
;
final
String
Function
(
String
tex
)?
latexWorkaround
;
final
Widget
Function
(
BuildContext
context
,
String
tex
)?
latexBuilder
;
...
...
@@ -166,7 +166,7 @@ class MdWidget extends StatelessWidget {
style:
style
?.
copyWith
(),
),
textDirection:
textDirection
,
textScale
r:
textScale
r
,
textScale
Factor:
textScaleFacto
r
,
textAlign:
textAlign
,
);
}
...
...
gpt_markdown/pubspec.yaml
View file @
414cd6b
name
:
gpt_markdown
description
:
"
The
purpose
of
this
package
is
to
render
the
response
of
ChatGPT
into
a
Flutter
app."
version
:
0.0.
5
version
:
0.0.
6
homepage
:
https://github.com/saminsohag/flutter_packages/tree/main/gpt_markdown
environment
:
...
...
Please
register
or
login
to post a comment