mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-03-03 12:16:47 +00:00
fix: quoted text message not shown properly
This commit is contained in:
parent
2b3ee4fbb3
commit
30db0a1ff5
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ InputDecoration inputTextMessageDeco(BuildContext context) {
|
||||||
|
|
||||||
String truncateString(String input, {int maxLength = 20}) {
|
String truncateString(String input, {int maxLength = 20}) {
|
||||||
if (input.length > maxLength) {
|
if (input.length > maxLength) {
|
||||||
return '${input.substring(0, maxLength)}...';
|
return '${input.characters.take(maxLength)}...';
|
||||||
}
|
}
|
||||||
return input;
|
return input;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue