saminsohag

font spacng fixed

  1 +## 0.0.7
  2 +
  3 +* Font spacing fixed.
  4 +
1 ## 0.0.6 5 ## 0.0.6
2 6
3 * Code improved. 7 * Code improved.
@@ -45,7 +45,6 @@ class TexText extends StatelessWidget { @@ -45,7 +45,6 @@ class TexText extends StatelessWidget {
45 return Wrap( 45 return Wrap(
46 alignment: WrapAlignment.values[alignment.index], 46 alignment: WrapAlignment.values[alignment.index],
47 crossAxisAlignment: WrapCrossAlignment.center, 47 crossAxisAlignment: WrapCrossAlignment.center,
48 - spacing: 4,  
49 children: e 48 children: e
50 .split(r'$') 49 .split(r'$')
51 .asMap() 50 .asMap()
@@ -72,22 +71,34 @@ class TexText extends StatelessWidget { @@ -72,22 +71,34 @@ class TexText extends StatelessWidget {
72 } 71 }
73 return MapEntry( 72 return MapEntry(
74 index, 73 index,
75 - e.split(" ").map<Widget>(  
76 - (e) {  
77 - return Text( 74 + e
  75 + .split(" ")
  76 + .asMap()
  77 + .map<int, Iterable<Widget>>(
  78 + (index, e) {
  79 + return MapEntry(index, [
  80 + if (index != 0)
  81 + Text(
  82 + " ",
  83 + style: style,
  84 + ),
  85 + Text(
78 e, 86 e,
79 - textAlign: TextAlign.values[alignment.index], 87 + textAlign:
  88 + TextAlign.values[alignment.index],
80 style: style, 89 style: style,
81 - );  
82 - },  
83 ), 90 ),
  91 + ]);
  92 + },
  93 + )
  94 + .values
  95 + .expand((element) => element),
84 ); 96 );
85 }, 97 },
86 ) 98 )
87 .values 99 .values
88 .expand<Widget>((element) => element) 100 .expand<Widget>((element) => element)
89 - .toList(),  
90 - ); 101 + .toList());
91 }, 102 },
92 ).toList(), 103 ).toList(),
93 ); 104 );
1 name: tex_text 1 name: tex_text
2 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. 2 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.
3 -version: 0.0.6 3 +version: 0.0.7
4 homepage: https://github.com/saminsohag/flutter_packages/tree/main/tex_text 4 homepage: https://github.com/saminsohag/flutter_packages/tree/main/tex_text
5 5
6 environment: 6 environment: