feat: Added gridview for channel list view and changed implementation for image sharing
This commit is contained in:
@@ -52,6 +52,7 @@ class ChannelImage extends StatelessWidget {
|
||||
this.onTap,
|
||||
this.showOnlineStatus = true,
|
||||
this.borderRadius,
|
||||
this.selected = false,
|
||||
}) : super(key: key);
|
||||
|
||||
final BorderRadius borderRadius;
|
||||
@@ -67,6 +68,8 @@ class ChannelImage extends StatelessWidget {
|
||||
|
||||
final bool showOnlineStatus;
|
||||
|
||||
final bool selected;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final streamChat = StreamChat.of(context);
|
||||
@@ -99,6 +102,7 @@ class ChannelImage extends StatelessWidget {
|
||||
onTap();
|
||||
}
|
||||
: null,
|
||||
selected: selected,
|
||||
);
|
||||
});
|
||||
} else {
|
||||
@@ -111,12 +115,14 @@ class ChannelImage extends StatelessWidget {
|
||||
.toList();
|
||||
return GroupImage(
|
||||
images: images,
|
||||
borderRadius: borderRadius,
|
||||
constraints: constraints ??
|
||||
StreamChatTheme.of(context)
|
||||
.channelPreviewTheme
|
||||
.avatarTheme
|
||||
.constraints,
|
||||
onTap: onTap,
|
||||
selected: selected,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user