use channe.state.unreacCountStream

This commit is contained in:
Salvatore Giordano
2020-10-23 16:03:03 +02:00
parent 876275aa54
commit 4a6c062484
5 changed files with 48 additions and 30 deletions
+2 -4
View File
@@ -304,10 +304,8 @@ class _ChannelListViewState extends State<ChannelListView>
return StreamChannel(
key: ValueKey<String>('CHANNEL-${channel.id}'),
channel: channel,
child: StreamBuilder<DateTime>(
initialData: channel.updatedAt,
stream: channel.updatedAtStream,
builder: (context, snapshot) {
child: Builder(
builder: (context) {
Widget child;
if (widget.channelPreviewBuilder != null) {
child = Stack(