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 | 179 | ), |
| 180 | 180 | Expanded( |
| 181 | 181 | child: Text( |
| 182 | - bloc.currentPageData()?.word ?? '', | |
| 182 | + bloc.currentPageData()?.word?.trim() ?? '', | |
| 183 | 183 | style: TextStyle( |
| 184 | 184 | color: const Color(0xFF333333), fontSize: 21.sp), |
| 185 | 185 | maxLines: 2, | ... | ... |