Migrated most of the code from deprecated widgets to v4 widgets, and changed data being supplied for full screen implementation

This commit is contained in:
Ayush Shekhar
2022-04-13 18:46:39 +05:30
parent 931506c002
commit 56b8f89479
21 changed files with 68 additions and 73 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,
),