fix: Fixed errorBuilder warning
This commit is contained in:
@@ -264,6 +264,18 @@ class _MessageListViewState extends State<MessageListView> {
|
|||||||
messageListController: _messageListController,
|
messageListController: _messageListController,
|
||||||
parentMessage: widget.parentMessage,
|
parentMessage: widget.parentMessage,
|
||||||
showScrollToBottom: widget.showScrollToBottom,
|
showScrollToBottom: widget.showScrollToBottom,
|
||||||
|
errorWidgetBuilder: (BuildContext context, Object error) {
|
||||||
|
return Center(
|
||||||
|
child: Text(
|
||||||
|
'Something went wrong',
|
||||||
|
style: StreamChatTheme.of(context).textTheme.footnote.copyWith(
|
||||||
|
color: StreamChatTheme.of(context)
|
||||||
|
.colorTheme
|
||||||
|
.black
|
||||||
|
.withOpacity(.5)),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user