mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
fix: ScrollController in chatlist
This commit is contained in:
parent
8911e649fd
commit
93477d3a1e
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user