fix: Added confirmation dialogs and fixed alignment
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user