fix: Fixed errorBuilder warning

This commit is contained in:
Deven Joshi
2021-01-28 17:34:56 +05:30
parent af3779eb21
commit 2a3e5529b8
@@ -264,6 +264,18 @@ class _MessageListViewState extends State<MessageListView> {
messageListController: _messageListController,
parentMessage: widget.parentMessage,
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)),
),
);
},
);
}