saminsohag

font spacng fixed

## 0.0.7
* Font spacing fixed.
## 0.0.6
* Code improved.
... ...
... ... @@ -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(),
);
... ...
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:
... ...