Merge branch 'feature/new-ui' of https://github.com/GetStream/stream-chat-flutter into feature/group-info-screen

 Conflicts:
	example/lib/chat_info_screen.dart
	example/lib/main.dart
	example/pubspec.yaml
	lib/src/image_footer.dart
	lib/src/stream_svg_icon.dart
This commit is contained in:
Deven Joshi
2020-12-31 18:53:13 +05:30
53 changed files with 1473 additions and 869 deletions
+9 -2
View File
@@ -49,6 +49,9 @@ class ChannelPreview extends StatelessWidget {
return Opacity(
opacity: snapshot.data ? 0.5 : 1,
child: ListTile(
contentPadding: const EdgeInsets.symmetric(
horizontal: 8,
),
onTap: () {
if (onTap != null) {
onTap(channel);
@@ -99,12 +102,16 @@ class ChannelPreview extends StatelessWidget {
padding: const EdgeInsets.only(right: 4.0),
child: SendingIndicator(
message: channel.state.lastMessage,
allRead: channel.state.read
size: StreamChatTheme.of(context)
.channelPreviewTheme
.lastMessageAt
.fontSize,
isMessageRead: channel.state.read
.where((element) => element.lastRead
.isAfter(channel
.state.lastMessage.createdAt))
.length ==
(channel.memberCount ?? 0),
((channel.memberCount ?? 0) - 1),
),
);
}