Merge pull request #200 from GetStream/fix/typing_indicator

feat: Added typing indicator design and styling fixes
This commit is contained in:
Salvatore Giordano
2021-01-08 10:04:23 +01:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ class TypingIndicator extends StatelessWidget {
height: 4,
),
Text(
' ${snapshot.data.map((u) => u.name).join(',')} ${snapshot.data.length == 1 ? 'is' : 'are'} typing',
' ${snapshot.data[0].name}${snapshot.data.length == 1 ? '' : ' and ${snapshot.data.length - 1} more'} ${snapshot.data.length == 1 ? 'is' : 'are'} typing',
maxLines: 1,
style: style,
),