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
2022-12-20 08:27:19 +0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
46da40176de0d826899781d37f76449fbd41e723
46da4017
1 parent
42cf1d9e
font spacng fixed
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
10 deletions
tex_text/CHANGELOG.md
tex_text/lib/tex_text.dart
tex_text/pubspec.yaml
tex_text/CHANGELOG.md
View file @
46da401
## 0.0.7
*
Font spacing fixed.
## 0.0.6
*
Code improved.
...
...
tex_text/lib/tex_text.dart
View file @
46da401
...
...
@@ -45,7 +45,6 @@ class TexText extends StatelessWidget {
return
Wrap
(
alignment:
WrapAlignment
.
values
[
alignment
.
index
],
crossAxisAlignment:
WrapCrossAlignment
.
center
,
spacing:
4
,
children:
e
.
split
(
r'$'
)
.
asMap
()
...
...
@@ -72,22 +71,34 @@ class TexText extends StatelessWidget {
}
return
MapEntry
(
index
,
e
.
split
(
" "
).
map
<
Widget
>(
(
e
)
{
return
Text
(
e
.
split
(
" "
)
.
asMap
()
.
map
<
int
,
Iterable
<
Widget
>>(
(
index
,
e
)
{
return
MapEntry
(
index
,
[
if
(
index
!=
0
)
Text
(
" "
,
style:
style
,
),
Text
(
e
,
textAlign:
TextAlign
.
values
[
alignment
.
index
],
textAlign:
TextAlign
.
values
[
alignment
.
index
],
style:
style
,
);
},
),
]);
},
)
.
values
.
expand
((
element
)
=>
element
),
);
},
)
.
values
.
expand
<
Widget
>((
element
)
=>
element
)
.
toList
(),
);
.
toList
());
},
).
toList
(),
);
...
...
tex_text/pubspec.yaml
View file @
46da401
name
:
tex_text
description
:
This package for Flutter allows you to show text on a Flutter app with LaTex math formula and normal text from string. It is vary easy to use and works for all of the platforms.
version
:
0.0.
6
version
:
0.0.
7
homepage
:
https://github.com/saminsohag/flutter_packages/tree/main/tex_text
environment
:
...
...
Please
register
or
login
to post a comment