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