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-09 08:25:38 +0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bf402c851e22f503e27cfa28e76056f1e4f0aeee
bf402c85
1 parent
8715f218
Example improved
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
17 deletions
tex_markdown/example/lib/main.dart
tex_markdown/example/pubspec.lock
tex_markdown/example/lib/main.dart
View file @
bf402c8
...
...
@@ -62,22 +62,23 @@ class MyHomePage extends StatefulWidget {
class
_MyHomePageState
extends
State
<
MyHomePage
>
{
TextDirection
_direction
=
TextDirection
.
ltr
;
final
TextEditingController
_controller
=
TextEditingController
(
text:
r''
'
# hi how are you?
$my
is^2
$
## hi how are you
$
(
\
frac ab)^2
$
?
### hi how are you?
#### hi how are you?
##### hi how are you?
$my
name is x^2
$
###### hi how are you?
$x
^2
$
hello
# This is H1
## This is H2
### This is H3
#### This is H4
##### This is H5
###### This is H6
This are just regular text.
---
my name is
This is a image.

**bold
$x
^2
\
cfrac a{
\
cfrac ab}
$
text**
*Italic text
$x
^2
\
cfrac a{b}
$
*
**bold
$x
^2
\
cfrac a{
\
cfrac ab}
$
text**
*Italic text
$x
^2
\
cfrac a{b}
$
*
**hello**
$hello
$
$sdf
\
frac a{
\
frac ab}
$
$sdf
\
frac a{
\
frac ab}
$
$hello
$
[Link]()
- unordered list
...
...
@@ -135,6 +136,23 @@ $hello$
reverse:
_direction
==
TextDirection
.
rtl
,
child:
SizedBox
(
width:
400
,
child:
Theme
(
data:
Theme
.
of
(
context
).
copyWith
(
textTheme:
const
TextTheme
(
// For H1.
headlineLarge:
TextStyle
(
fontSize:
55
),
// For H2.
headlineMedium:
TextStyle
(
fontSize:
45
),
// For H3.
headlineSmall:
TextStyle
(
fontSize:
35
),
// For H4.
titleLarge:
TextStyle
(
fontSize:
25
),
// For H5.
titleMedium:
TextStyle
(
fontSize:
15
),
// For H6.
titleSmall:
TextStyle
(
fontSize:
10
),
),
),
child:
TexMarkdown
(
_controller
.
text
,
textDirection:
_direction
,
...
...
@@ -143,8 +161,11 @@ $hello$
log
(
url
,
name:
"url"
);
},
style:
const
TextStyle
(
// color: Colors.green,
// Regular text font size here.
fontSize:
15
,
),
),
// child: const Text("Hello"),
),
),
);
...
...
tex_markdown/example/pubspec.lock
View file @
bf402c8
...
...
@@ -475,14 +475,15 @@ packages:
path: ".."
relative: true
source: path
version: "0.1.
9
"
version: "0.1.
10
"
tex_text:
dependency: transitive
description:
path: "../../tex_text"
relative: true
source: path
version: "0.1.8"
name: tex_text
sha256: c1069b0f08aa8fbb9f6a670f2ed27328311e0e0b5445417cab710f30c0c28084
url: "https://pub.dev"
source: hosted
version: "0.1.9"
tuple:
dependency: transitive
description:
...
...
Please
register
or
login
to post a comment