Merge branch 'feature/notifications' into feature/messageInputActions

This commit is contained in:
Salvatore Giordano
2020-05-01 13:31:03 +02:00
committed by GitHub
+8 -1
View File
@@ -74,6 +74,7 @@ class MessageListView extends StatefulWidget {
this.dateDividerBuilder,
this.showAvatar = true,
this.editMessageInputBuilder,
this.scrollPhysics = const AlwaysScrollableScrollPhysics(),
}) : super(key: key);
/// Function used to build a custom message widget
@@ -116,8 +117,13 @@ class MessageListView extends StatefulWidget {
/// if true shows the user avatar
final bool showAvatar;
/// Builder used to build the message input to edit a message
final Widget Function(BuildContext, Message) editMessageInputBuilder;
/// The ScrollPhysics used by the ListView
final ScrollPhysics scrollPhysics;
@override
_MessageListViewState createState() => _MessageListViewState();
@@ -149,7 +155,8 @@ class _MessageListViewState extends State<MessageListView> {
},
child: ListView.custom(
key: Key('messageListView'),
physics: AlwaysScrollableScrollPhysics(),
shrinkWrap: true,
physics: widget.scrollPhysics,
controller: _scrollController,
reverse: true,
childrenDelegate: SliverChildBuilderDelegate(