@@ -14,13 +14,13 @@ class MessageComposerRecordingLocked extends StatelessWidget {
1414 /// Creates a new instance of [MessageComposerRecordingLocked] .
1515 /// [audioRecorderController] is the controller for the audio recorder.
1616 /// [feedback] is the feedback for the audio recorder.
17- /// [messageInputController ] is the controller for the message input .
17+ /// [messageComposerController ] is the controller for the message composer .
1818 /// [sendMessageCallback] is the callback for when the message is sent automatically.
1919 const MessageComposerRecordingLocked ({
2020 super .key,
2121 required this .audioRecorderController,
2222 required this .feedback,
23- required this .messageInputController ,
23+ required this .messageComposerController ,
2424 required this .sendMessageCallback,
2525 required this .state,
2626 });
@@ -32,7 +32,7 @@ class MessageComposerRecordingLocked extends StatelessWidget {
3232 final AudioRecorderFeedback feedback;
3333
3434 /// The controller for the message composer.
35- final StreamMessageComposerController messageInputController ;
35+ final StreamMessageComposerController messageComposerController ;
3636
3737 /// The callback for when the message is sent automatically.
3838 /// This callback should be null when the message is not supposed to be sent automatically.
@@ -110,7 +110,7 @@ class MessageComposerRecordingLocked extends StatelessWidget {
110110 await feedback.onRecordFinish (context);
111111 final audio = await audioRecorderController.finishRecord ();
112112 if (audio != null ) {
113- messageInputController .addAttachment (audio);
113+ messageComposerController .addAttachment (audio);
114114 }
115115
116116 // Once the recording is finished, cancel the recorder.
@@ -134,13 +134,13 @@ class MessageComposerRecordingStopped extends StatefulWidget {
134134 /// Creates a new instance of [MessageComposerRecordingStopped] .
135135 /// [audioRecorderController] is the controller for the audio recorder.
136136 /// [feedback] is the feedback for the audio recorder.
137- /// [messageInputController ] is the controller for the message input .
137+ /// [messageComposerController ] is the controller for the message composer .
138138 /// [sendMessageCallback] is the callback for when the message is sent automatically.
139139 const MessageComposerRecordingStopped ({
140140 super .key,
141141 required this .audioRecorderController,
142142 required this .feedback,
143- required this .messageInputController ,
143+ required this .messageComposerController ,
144144 required this .sendMessageCallback,
145145 required this .recordingState,
146146 });
@@ -152,7 +152,7 @@ class MessageComposerRecordingStopped extends StatefulWidget {
152152 final AudioRecorderFeedback feedback;
153153
154154 /// The controller for the message composer.
155- final StreamMessageComposerController messageInputController ;
155+ final StreamMessageComposerController messageComposerController ;
156156
157157 /// The callback for when the message is sent automatically.
158158 /// This callback should be null when the message is not supposed to be sent automatically.
@@ -307,7 +307,7 @@ class _MessageComposerRecordingStoppedState extends State<MessageComposerRecordi
307307 await widget.feedback.onRecordFinish (context);
308308 final audio = await widget.audioRecorderController.finishRecord ();
309309 if (audio != null ) {
310- widget.messageInputController .addAttachment (audio);
310+ widget.messageComposerController .addAttachment (audio);
311311 }
312312
313313 // Once the recording is finished, cancel the recorder.
0 commit comments