feat: Added fixes and modal for group

This commit is contained in:
Deven Joshi
2020-12-30 20:50:33 +05:30
parent cbf21f669f
commit 8a390347a7
4 changed files with 258 additions and 0 deletions
+27
View File
@@ -373,6 +373,10 @@ class _ChannelListPageState extends State<ChannelListPage> {
limit: 20,
),
channelWidget: ChannelPage(),
onChannelLongPress: (channel) {
if (!channel.isDistinct)
_showChannelDetailsModal(channel);
},
),
),
),
@@ -383,6 +387,29 @@ class _ChannelListPageState extends State<ChannelListPage> {
),
);
}
void _showChannelDetailsModal(Channel channel) {
showModalBottomSheet(
context: context,
builder: (context) {
return StreamChannel(
child: ChannelActionsModal(
onViewInfoTap: () {
// TODO: Go to group info screen when PR is merged
},
),
channel: channel);
},
isScrollControlled: true,
clipBehavior: Clip.antiAlias,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(16.0),
topRight: Radius.circular(16.0),
),
),
);
}
}
class ChannelPageArgs {