-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can i open ChannelPage out of ChannelListPage #63
Comments
I have found the solution, this works for me. onTap: () async {
var conversation = Chat()
.client
.channel("messaging", extraData: {
"members": [
user.id.toString(),
ClientChannelManager.getUser()
.id
.toString()
]
});
var st = await conversation.create();
var c = Channel.fromState(Chat().client, st);
Navigator.push(context, MaterialPageRoute(
builder: (context) {
return StreamChannel(
child: ChannelPage(),
channel: c,
);
// return MessagePage(
// userId: user.id,
// );
},
));
},
|
you can also use |
It works for me, thanks. |
6 tasks
6 tasks
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have followed the guide create the ChannelListPage and ChannelPage, and it works fine for me. But now I want to open a one to one conversation, but when I navigate to StreamChannel, it keeps on loading, and I don't know how to make it work. Help me, please.
This is my code.
and these is how to navigate to channel page. These code is in other place to jump to ChannelPage.
and the app keep in this state
![photo_2020-07-27_01-33-24](https://user-images.githubusercontent.com/1270490/88485555-3727cf80-cfa9-11ea-94ba-056db93f1a3e.jpg)
gz#4631
The text was updated successfully, but these errors were encountered: