From 1a21dc27a2f080404857aef69699dbf6233fc32f Mon Sep 17 00:00:00 2001 From: xsahil03x Date: Thu, 19 Nov 2020 13:20:55 +0530 Subject: [PATCH] [Drawer,NewChatScreen] Navigate to NewGroupChatScreen on "New Group" button press. --- example/lib/chips_input_text_field.dart | 2 +- example/lib/main.dart | 33 ++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/example/lib/chips_input_text_field.dart b/example/lib/chips_input_text_field.dart index ef8229c8..e62773f7 100644 --- a/example/lib/chips_input_text_field.dart +++ b/example/lib/chips_input_text_field.dart @@ -64,7 +64,7 @@ class ChipInputTextFieldState extends State> { @override Widget build(BuildContext context) { return Material( - elevation: 2, + elevation: 4, color: Colors.white, child: Container( child: Padding( diff --git a/example/lib/main.dart b/example/lib/main.dart index f681129d..82fee6b2 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -121,6 +121,12 @@ class ChannelListPage extends StatelessWidget { ), ), ListTile( + onTap: () { + Navigator.push( + context, + MaterialPageRoute(builder: (_) => NewGroupChatScreen()), + ); + }, leading: Icon(StreamIcons.group), title: Text( 'New group', @@ -492,7 +498,12 @@ class _NewChatScreenState extends State { Container( color: Colors.white54, child: InkWell( - onTap: () {}, + onTap: () { + Navigator.push( + context, + MaterialPageRoute(builder: (_) => NewGroupChatScreen()), + ); + }, child: Row( children: [ NeumorphicButton( @@ -581,3 +592,23 @@ class _NewChatScreenState extends State { ); } } + +class NewGroupChatScreen extends StatefulWidget { + @override + _NewGroupChatScreenState createState() => _NewGroupChatScreenState(); +} + +class _NewGroupChatScreenState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + backgroundColor: Colors.white, + title: Text( + 'Add Group Members', + style: TextStyle(color: Colors.black), + ), + ), + ); + } +}