add streamchattheme.fromtheme

This commit is contained in:
Salvatore Giordano
2020-02-28 11:01:11 +01:00
parent 15c13a7dc9
commit a6d659f932
12 changed files with 452 additions and 273 deletions
+3 -3
View File
@@ -218,7 +218,7 @@ class _MessageListViewState extends State<MessageListView> {
}
Widget _buildBottomMessage(
StreamChannelState channelBloc,
StreamChannelState channel,
Message previousMessage,
Message message,
BuildContext context,
@@ -244,8 +244,8 @@ class _MessageListViewState extends State<MessageListView> {
onVisibilityChanged: (visibility) {
_isBottom = visibility.visibleBounds != Rect.zero;
if (_isBottom) {
if (channelBloc.channel.state.unreadCount > 0) {
channelBloc.channel.markRead();
if (channel.channel.state.unreadCount > 0) {
channel.channel.markRead();
}
}
},