-
Notifications
You must be signed in to change notification settings - Fork 382
feat(ui): Refactor new composer #2633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v10.0.0
Are you sure you want to change the base?
Changes from 6 commits
b655da9
ae9f63d
dd2f575
30048dc
5013d7b
9a89178
9a3af90
46816b1
9b142ea
ecf9dec
a232535
ad73196
1ce9115
51ab6b7
1904103
0be1b06
63c16f2
d33f2d5
0917f56
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -220,7 +220,7 @@ class ChannelPage extends StatefulWidget { | |
| } | ||
|
|
||
| class _ChannelPageState extends State<ChannelPage> { | ||
| late final messageInputController = StreamMessageInputController(); | ||
| late final messageInputController = StreamMessageComposerController(); | ||
| final focusNode = FocusNode(); | ||
|
|
||
| @override | ||
|
|
@@ -256,11 +256,11 @@ class _ChannelPageState extends State<ChannelPage> { | |
| swipeToReply: true, | ||
| ), | ||
| ), | ||
| StreamMessageInput( | ||
| StreamMessageComposer( | ||
| enableVoiceRecording: true, | ||
| onQuotedMessageCleared: messageInputController.clearQuotedMessage, | ||
| focusNode: focusNode, | ||
| messageInputController: messageInputController, | ||
| controller: messageInputController, | ||
| ), | ||
| ], | ||
| ), | ||
|
|
@@ -303,9 +303,9 @@ class ThreadPage extends StatelessWidget { | |
| parentMessage: parent, | ||
| ), | ||
| ), | ||
| StreamMessageInput( | ||
| StreamMessageComposer( | ||
| enableVoiceRecording: true, | ||
| messageInputController: StreamMessageInputController( | ||
| controller: StreamMessageComposerController( | ||
| message: Message(parentId: parent.id), | ||
| ), | ||
|
Comment on lines
+306
to
310
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't create the thread composer controller inside
🤖 Prompt for AI Agents |
||
| ), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.