mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +01:00
Merge branch 'shine/reply-key-susbring-fix' into 'main'
fix: substring in reply key respects unicode runes See merge request famedly/fluffychat!397
This commit is contained in:
commit
0b1cf6221c
@ -1,7 +1,7 @@
|
|||||||
import 'package:famedlysdk/famedlysdk.dart';
|
import 'package:famedlysdk/famedlysdk.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
|
import 'package:characters/characters.dart';
|
||||||
import 'package:future_loading_dialog/future_loading_dialog.dart';
|
import 'package:future_loading_dialog/future_loading_dialog.dart';
|
||||||
import 'matrix.dart';
|
import 'matrix.dart';
|
||||||
|
|
||||||
@ -109,9 +109,9 @@ class _Reaction extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
var renderKey = reactionKey;
|
var renderKey = Characters(reactionKey);
|
||||||
if (renderKey.length > 10) {
|
if (renderKey.length > 10) {
|
||||||
renderKey = renderKey.substring(0, 7) + '...';
|
renderKey = renderKey.getRange(0, 9) + Characters('…');
|
||||||
}
|
}
|
||||||
content = Text('$renderKey $count',
|
content = Text('$renderKey $count',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
Loading…
Reference in New Issue
Block a user