feat: Added typing indicator design and styling fixes

This commit is contained in:
Deven Joshi
2021-01-08 14:21:38 +05:30
parent f3aefdaf8b
commit eaa3ef0959
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -578,6 +578,12 @@ class _ChannelPageState extends State<ChannelPage> {
horizontal: 8,
vertical: 4,
),
style: StreamChatTheme.of(context)
.textTheme
.footnote
.copyWith(
color:
StreamChatTheme.of(context).colorTheme.grey),
),
),
),
+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,
),