Commit cafc63b2be12e282362f622bc8c2bc0b9fb932ae
1 parent
e79583ae
feat:去除文本末尾多余空格或换行符
Showing
1 changed file
with
1 additions
and
1 deletions
lib/pages/reading/reading_page.dart
@@ -179,7 +179,7 @@ class _ReadingPage extends StatelessWidget { | @@ -179,7 +179,7 @@ class _ReadingPage extends StatelessWidget { | ||
179 | ), | 179 | ), |
180 | Expanded( | 180 | Expanded( |
181 | child: Text( | 181 | child: Text( |
182 | - bloc.currentPageData()?.word ?? '', | 182 | + bloc.currentPageData()?.word?.trim() ?? '', |
183 | style: TextStyle( | 183 | style: TextStyle( |
184 | color: const Color(0xFF333333), fontSize: 21.sp), | 184 | color: const Color(0xFF333333), fontSize: 21.sp), |
185 | maxLines: 2, | 185 | maxLines: 2, |