fix: ScrollController in chatlist

This commit is contained in:
Christian Pauly 2021-04-09 15:28:35 +02:00
parent 8911e649fd
commit 93477d3a1e

View File

@ -39,8 +39,6 @@ class _ChatListState extends State<ChatList> {
AppBar appBar;
final _selectedRoomIds = <String>{};
final ScrollController _scrollController = ScrollController();
void _processIncomingSharedFiles(List<SharedMediaFile> files) {
if (files?.isEmpty ?? true) return;
AdaptivePageLayout.of(context).popUntilIsFirst();
@ -386,7 +384,6 @@ class _ChatListState extends State<ChatList> {
}
final totalCount = rooms.length;
return ListView.builder(
controller: _scrollController,
itemCount: totalCount,
itemBuilder: (BuildContext context, int i) =>
ChatListItem(