Merge branch 'feature/null-safety' into feat/ui-nnbd

This commit is contained in:
Salvatore Giordano
2021-05-03 10:46:06 +02:00
14 changed files with 283 additions and 28 deletions
@@ -142,6 +142,7 @@ class MessageListView extends StatefulWidget {
this.onSystemMessageTap,
this.onAttachmentTap,
this.textBuilder,
this.onLinkTap,
}) : super(key: key);
/// Function used to build a custom message widget
@@ -237,6 +238,8 @@ class MessageListView extends StatefulWidget {
/// Customize the MessageWidget textBuilder
final void Function(BuildContext context, Message message)? textBuilder;
final void Function(String link) onLinkTap;
@override
_MessageListViewState createState() => _MessageListViewState();
}
@@ -845,6 +848,7 @@ class _MessageListViewState extends State<MessageListView> {
},
textBuilder:
widget.textBuilder as Widget Function(BuildContext, Message)?,
onLinkTap: widget.onLinkTap,
);
}
@@ -1022,6 +1026,7 @@ class _MessageListViewState extends State<MessageListView> {
onAttachmentTap: widget.onAttachmentTap,
textBuilder:
widget.textBuilder as Widget Function(BuildContext, Message)?,
onLinkTap: widget.onLinkTap,
);
if (!message.isDeleted &&