Merge branch 'master' into feature/notifications

This commit is contained in:
Salvatore Giordano
2020-04-22 10:53:41 +02:00
6 changed files with 210 additions and 107 deletions
+7 -2
View File
@@ -25,11 +25,14 @@ class ChannelPreview extends StatelessWidget {
/// Channel displayed
final Channel channel;
/// Instantiate a new ChannelPreview
/// The function called when the image is tapped
final VoidCallback onImageTap;
ChannelPreview({
@required this.channel,
Key key,
this.onTap,
this.onImageTap,
}) : super(key: key);
@override
@@ -38,7 +41,9 @@ class ChannelPreview extends StatelessWidget {
onTap: () {
onTap(channel);
},
leading: ChannelImage(),
leading: ChannelImage(
onTap: onImageTap,
),
title: ChannelName(
textStyle: StreamChatTheme.of(context).channelPreviewTheme.title,
),