feat(sample-app): Migrate sample app to v4

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2022-03-21 16:12:28 +05:30
committed by xsahil03x
parent 931506c002
commit 420028da2e
21 changed files with 200 additions and 128 deletions
+4 -4
View File
@@ -44,13 +44,13 @@ class _ThreadPageState extends State<ThreadPage> {
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: StreamChatTheme.of(context).colorTheme.appBg,
appBar: ThreadHeader(
appBar: StreamThreadHeader(
parent: widget.parent,
),
body: Column(
children: <Widget>[
Expanded(
child: MessageListView(
child: StreamMessageListView(
parentMessage: widget.parent,
initialScrollIndex: widget.initialScrollIndex,
initialAlignment: widget.initialAlignment,
@@ -62,14 +62,14 @@ class _ThreadPageState extends State<ThreadPage> {
return defaultMessage.copyWith(
onReplyTap: _reply,
deletedBottomRowBuilder: (context, message) {
return const VisibleFootnote();
return const StreamVisibleFootnote();
},
);
},
),
),
if (widget.parent.type != 'deleted')
MessageInput(
StreamMessageInput(
focusNode: _focusNode,
messageInputController: _messageInputController,
),