fix: Added confirmation dialogs and fixed alignment

This commit is contained in:
Deven Joshi
2020-12-31 16:32:45 +05:30
parent 2026058d30
commit ca6bd62084
5 changed files with 210 additions and 397 deletions
-26
View File
@@ -373,9 +373,6 @@ class _ChannelListPageState extends State<ChannelListPage> {
limit: 20,
),
channelWidget: ChannelPage(),
onChannelLongPress: (channel) {
_showChannelDetailsModal(channel);
},
),
),
),
@@ -386,29 +383,6 @@ 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 {