feat: Added group info screen, refactored components, added some functionality

This commit is contained in:
Deven Joshi
2020-12-14 20:22:48 +05:30
parent 984d3ec104
commit f2a707bc45
7 changed files with 681 additions and 144 deletions
+11
View File
@@ -9,6 +9,7 @@ import '../stream_chat_flutter.dart';
import './channel_name.dart';
import 'channel_image.dart';
import 'chat_info_screen.dart';
import 'group_info_screen.dart';
import 'stream_channel.dart';
/// ![screenshot](https://raw.githubusercontent.com/GetStream/stream-chat-flutter/master/screenshots/channel_header.png)
@@ -124,6 +125,16 @@ class ChannelHeader extends StatelessWidget implements PreferredSizeWidget {
Navigator.pop(context);
}
}
} else {
await Navigator.push(
context,
MaterialPageRoute(
builder: (context) => StreamChannel(
channel: channel,
child: GroupInfoScreen(),
),
),
);
}
},
),