Skip to content

Commit c7de8cb

Browse files
chore: 🔨 Code format
1 parent a4e1318 commit c7de8cb

File tree

6 files changed

+24
-21
lines changed

6 files changed

+24
-21
lines changed

lib/src/widgets/chat_list_widget.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ class _ChatListWidgetState extends State<ChatListWidget>
146146
replyMessage: widget.replyMessage,
147147
onChatBubbleLongPress: (yCoordinate, xCoordinate, message) {
148148
if (featureActiveConfig?.enableReactionPopup ?? false) {
149-
chatViewIW?.reactionPopupKey.currentState?.refreshWidget(
149+
chatViewIW?.reactionPopupKey.currentState
150+
?.refreshWidget(
150151
message: message,
151152
xCoordinate: xCoordinate,
152153
yCoordinate: yCoordinate,
@@ -162,7 +163,6 @@ class _ChatListWidgetState extends State<ChatListWidget>
162163
},
163164
onChatListTap: _onChatListTap,
164165
),
165-
166166
],
167167
);
168168
},

lib/src/widgets/chat_view.dart

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,15 @@ class _ChatViewState extends State<ChatView>
200200
Container(
201201
height: chatBackgroundConfig.height ??
202202
MediaQuery.of(context).size.height,
203-
width:
204-
chatBackgroundConfig.width ?? MediaQuery.of(context).size.width,
203+
width: chatBackgroundConfig.width ??
204+
MediaQuery.of(context).size.width,
205205
decoration: BoxDecoration(
206206
color: chatBackgroundConfig.backgroundColor ?? Colors.white,
207207
image: chatBackgroundConfig.backgroundImage != null
208208
? DecorationImage(
209209
fit: BoxFit.fill,
210-
image:
211-
NetworkImage(chatBackgroundConfig.backgroundImage!),
210+
image: NetworkImage(
211+
chatBackgroundConfig.backgroundImage!),
212212
)
213213
: null,
214214
),
@@ -264,9 +264,9 @@ class _ChatViewState extends State<ChatView>
264264
isLastPage: widget.isLastPage,
265265
loadingWidget: widget.loadingWidget,
266266
onChatListTap: widget.onChatListTap,
267-
assignReplyMessage: (message) => _sendMessageKey
268-
.currentState
269-
?.assignReplyMessage(message),
267+
assignReplyMessage: (message) =>
268+
_sendMessageKey.currentState
269+
?.assignReplyMessage(message),
270270
);
271271
},
272272
),
@@ -275,13 +275,15 @@ class _ChatViewState extends State<ChatView>
275275
key: _sendMessageKey,
276276
sendMessageBuilder: widget.sendMessageBuilder,
277277
sendMessageConfig: widget.sendMessageConfig,
278-
onSendTap: (message, replyMessage, messageType) {
278+
onSendTap:
279+
(message, replyMessage, messageType) {
279280
if (context.suggestionsConfig
280281
?.autoDismissOnSelection ??
281282
true) {
282283
chatController.removeReplySuggestions();
283284
}
284-
_onSendTap(message, replyMessage, messageType);
285+
_onSendTap(
286+
message, replyMessage, messageType);
285287
},
286288
onReplyCallback: (reply) =>
287289
replyMessage.value = reply,

lib/src/widgets/chat_view_inherited_widget.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class ChatViewInheritedWidget extends InheritedWidget {
1919
final ValueNotifier<bool> showPopUp = ValueNotifier(false);
2020
final GlobalKey<ReactionPopupState> reactionPopupKey = GlobalKey();
2121

22-
2322
static ChatViewInheritedWidget? of(BuildContext context) =>
2423
context.dependOnInheritedWidgetOfExactType<ChatViewInheritedWidget>();
2524

lib/src/widgets/chatui_textfield.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,7 @@ class _ChatUITextFieldState extends State<ChatUITextField> {
149149
if (isRecordingValue && controller != null && !kIsWeb)
150150
Expanded(
151151
child: AudioWaveforms(
152-
size: const Size(
153-
double.maxFinite,
154-
50),
152+
size: const Size(double.maxFinite, 50),
155153
recorderController: controller!,
156154
margin: voiceRecordingConfig?.margin,
157155
padding: voiceRecordingConfig?.padding ??
@@ -167,8 +165,9 @@ class _ChatUITextFieldState extends State<ChatUITextField> {
167165
WaveStyle(
168166
extendWaveform: true,
169167
showMiddleLine: false,
170-
waveColor: voiceRecordingConfig?.waveStyle?.waveColor ??
171-
Colors.black,
168+
waveColor:
169+
voiceRecordingConfig?.waveStyle?.waveColor ??
170+
Colors.black,
172171
),
173172
),
174173
)

lib/src/widgets/image_message_view.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ class ImageMessageView extends StatelessWidget {
7272
mainAxisAlignment:
7373
isMessageBySender ? MainAxisAlignment.end : MainAxisAlignment.start,
7474
children: [
75-
if (isMessageBySender && !(imageMessageConfig?.hideShareIcon ?? false)) iconButton,
75+
if (isMessageBySender && !(imageMessageConfig?.hideShareIcon ?? false))
76+
iconButton,
7677
Stack(
7778
children: [
7879
GestureDetector(
@@ -141,7 +142,8 @@ class ImageMessageView extends StatelessWidget {
141142
),
142143
],
143144
),
144-
if (!isMessageBySender && !(imageMessageConfig?.hideShareIcon ?? false)) iconButton,
145+
if (!isMessageBySender && !(imageMessageConfig?.hideShareIcon ?? false))
146+
iconButton,
145147
],
146148
);
147149
}

lib/src/widgets/send_message_widget.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ class SendMessageWidget extends StatefulWidget {
4949
/// Provides configuration for text field appearance.
5050
final SendMessageConfiguration? sendMessageConfig;
5151

52-
5352
/// Allow user to set custom text field.
5453
final ReplyMessageWithReturnWidget? sendMessageBuilder;
5554

@@ -115,7 +114,9 @@ class SendMessageWidgetState extends State<SendMessageWidget> {
115114
child: Container(
116115
height: MediaQuery.of(context).size.height /
117116
((!kIsWeb && Platform.isIOS) ? 24 : 28),
118-
color: chatListConfig.chatBackgroundConfig.backgroundColor ?? Colors.white,
117+
color:
118+
chatListConfig.chatBackgroundConfig.backgroundColor ??
119+
Colors.white,
119120
),
120121
),
121122
Padding(

0 commit comments

Comments
 (0)