Open new chat screen page when new chat button is pressed.
This commit is contained in:
@@ -69,7 +69,15 @@ class ChannelListPage extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final user = StreamChat.of(context).user;
|
final user = StreamChat.of(context).user;
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: ChannelListHeader(),
|
appBar: ChannelListHeader(
|
||||||
|
onNewChatButtonTap: () {
|
||||||
|
Navigator.of(context).push(
|
||||||
|
MaterialPageRoute(
|
||||||
|
builder: (context) => NewChatScreen(),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
drawer: _buildDrawer(context, user),
|
drawer: _buildDrawer(context, user),
|
||||||
drawerEdgeDragWidth: 50,
|
drawerEdgeDragWidth: 50,
|
||||||
body: ChannelsBloc(
|
body: ChannelsBloc(
|
||||||
|
|||||||
Reference in New Issue
Block a user