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
+21 -1
View File
@@ -560,7 +560,27 @@ class _ChannelListViewState extends State<ChannelListView>
context: context,
builder: (context) {
return StreamChannel(
child: ChannelBottomSheet(),
child: ChannelBottomSheet(
onViewInfoTap: () {
if (channel.memberCount == 2 &&
channel.isDistinct) {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => StreamChannel(
channel: channel,
child: ChatInfoScreen(
user:
channel.state.members.first.user,
),
),
),
);
}
// TODO: Add group screen
},
),
channel: channel,
);
},