remove unused showScrollToBottom property from MessageListCore
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -368,7 +368,6 @@ class _MessageListViewState extends State<MessageListView> {
|
|||||||
(context, list) => _buildListView(list),
|
(context, list) => _buildListView(list),
|
||||||
messageListController: _messageListController,
|
messageListController: _messageListController,
|
||||||
parentMessage: widget.parentMessage,
|
parentMessage: widget.parentMessage,
|
||||||
showScrollToBottom: widget.showScrollToBottom,
|
|
||||||
errorWidgetBuilder: widget.errorWidgetBuilder ??
|
errorWidgetBuilder: widget.errorWidgetBuilder ??
|
||||||
(BuildContext context, Object error) => Center(
|
(BuildContext context, Object error) => Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|||||||
@@ -68,7 +68,6 @@ class MessageListCore extends StatefulWidget {
|
|||||||
required this.emptyBuilder,
|
required this.emptyBuilder,
|
||||||
required this.messageListBuilder,
|
required this.messageListBuilder,
|
||||||
required this.errorWidgetBuilder,
|
required this.errorWidgetBuilder,
|
||||||
this.showScrollToBottom = true,
|
|
||||||
this.parentMessage,
|
this.parentMessage,
|
||||||
this.messageListController,
|
this.messageListController,
|
||||||
this.messageFilter,
|
this.messageFilter,
|
||||||
@@ -94,10 +93,6 @@ class MessageListCore extends StatefulWidget {
|
|||||||
/// event of a connection failure.
|
/// event of a connection failure.
|
||||||
final ErrorBuilder errorWidgetBuilder;
|
final ErrorBuilder errorWidgetBuilder;
|
||||||
|
|
||||||
/// If true will show a scroll to bottom message when there are new messages
|
|
||||||
/// and the scroll offset is not zero.
|
|
||||||
final bool showScrollToBottom;
|
|
||||||
|
|
||||||
/// If the current message belongs to a `thread`, this property represents the
|
/// If the current message belongs to a `thread`, this property represents the
|
||||||
/// first message or the parent of the conversation.
|
/// first message or the parent of the conversation.
|
||||||
final Message? parentMessage;
|
final Message? parentMessage;
|
||||||
|
|||||||
Reference in New Issue
Block a user