fix listview default params

This commit is contained in:
Salvatore Giordano
2020-11-05 13:47:53 +01:00
parent e27b45e4f8
commit 5b93afcb5a
3 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -107,8 +107,8 @@ class MessageListView extends StatefulWidget {
this.onThreadTap,
this.dateDividerBuilder,
this.scrollPhysics = const AlwaysScrollableScrollPhysics(),
this.initialScrollIndex,
this.initialAlignment,
this.initialScrollIndex = 0,
this.initialAlignment = 0,
this.scrollController,
this.itemPositionListener,
}) : super(key: key);
@@ -608,8 +608,6 @@ class _MessageListViewState extends State<MessageListView> {
@override
void initState() {
super.initState();
_scrollController = widget.scrollController ?? ItemScrollController();
_itemPositionListener =
widget.itemPositionListener ?? ItemPositionsListener.create();
@@ -644,6 +642,7 @@ class _MessageListViewState extends State<MessageListView> {
}
_getOnThreadTap();
super.initState();
}
void _getOnThreadTap() {