diff --git a/lib/src/widgets/chat_list_widget.dart b/lib/src/widgets/chat_list_widget.dart index 3407f61b..d6da37dd 100644 --- a/lib/src/widgets/chat_list_widget.dart +++ b/lib/src/widgets/chat_list_widget.dart @@ -146,7 +146,8 @@ class _ChatListWidgetState extends State replyMessage: widget.replyMessage, onChatBubbleLongPress: (yCoordinate, xCoordinate, message) { if (featureActiveConfig?.enableReactionPopup ?? false) { - chatViewIW?.reactionPopupKey.currentState?.refreshWidget( + chatViewIW?.reactionPopupKey.currentState + ?.refreshWidget( message: message, xCoordinate: xCoordinate, yCoordinate: yCoordinate, @@ -162,7 +163,6 @@ class _ChatListWidgetState extends State }, onChatListTap: _onChatListTap, ), - ], ); }, diff --git a/lib/src/widgets/chat_view.dart b/lib/src/widgets/chat_view.dart index 5a9e5ece..d87fccf1 100644 --- a/lib/src/widgets/chat_view.dart +++ b/lib/src/widgets/chat_view.dart @@ -200,15 +200,15 @@ class _ChatViewState extends State Container( height: chatBackgroundConfig.height ?? MediaQuery.of(context).size.height, - width: - chatBackgroundConfig.width ?? MediaQuery.of(context).size.width, + width: chatBackgroundConfig.width ?? + MediaQuery.of(context).size.width, decoration: BoxDecoration( color: chatBackgroundConfig.backgroundColor ?? Colors.white, image: chatBackgroundConfig.backgroundImage != null ? DecorationImage( fit: BoxFit.fill, - image: - NetworkImage(chatBackgroundConfig.backgroundImage!), + image: NetworkImage( + chatBackgroundConfig.backgroundImage!), ) : null, ), @@ -264,9 +264,9 @@ class _ChatViewState extends State isLastPage: widget.isLastPage, loadingWidget: widget.loadingWidget, onChatListTap: widget.onChatListTap, - assignReplyMessage: (message) => _sendMessageKey - .currentState - ?.assignReplyMessage(message), + assignReplyMessage: (message) => + _sendMessageKey.currentState + ?.assignReplyMessage(message), ); }, ), @@ -275,13 +275,15 @@ class _ChatViewState extends State key: _sendMessageKey, sendMessageBuilder: widget.sendMessageBuilder, sendMessageConfig: widget.sendMessageConfig, - onSendTap: (message, replyMessage, messageType) { + onSendTap: + (message, replyMessage, messageType) { if (context.suggestionsConfig ?.autoDismissOnSelection ?? true) { chatController.removeReplySuggestions(); } - _onSendTap(message, replyMessage, messageType); + _onSendTap( + message, replyMessage, messageType); }, onReplyCallback: (reply) => replyMessage.value = reply, diff --git a/lib/src/widgets/chat_view_inherited_widget.dart b/lib/src/widgets/chat_view_inherited_widget.dart index 92e86f22..7380457a 100644 --- a/lib/src/widgets/chat_view_inherited_widget.dart +++ b/lib/src/widgets/chat_view_inherited_widget.dart @@ -19,7 +19,6 @@ class ChatViewInheritedWidget extends InheritedWidget { final ValueNotifier showPopUp = ValueNotifier(false); final GlobalKey reactionPopupKey = GlobalKey(); - static ChatViewInheritedWidget? of(BuildContext context) => context.dependOnInheritedWidgetOfExactType(); diff --git a/lib/src/widgets/chatui_textfield.dart b/lib/src/widgets/chatui_textfield.dart index c84ae1bb..531ab21a 100644 --- a/lib/src/widgets/chatui_textfield.dart +++ b/lib/src/widgets/chatui_textfield.dart @@ -149,9 +149,7 @@ class _ChatUITextFieldState extends State { if (isRecordingValue && controller != null && !kIsWeb) Expanded( child: AudioWaveforms( - size: const Size( - double.maxFinite, - 50), + size: const Size(double.maxFinite, 50), recorderController: controller!, margin: voiceRecordingConfig?.margin, padding: voiceRecordingConfig?.padding ?? @@ -167,8 +165,9 @@ class _ChatUITextFieldState extends State { WaveStyle( extendWaveform: true, showMiddleLine: false, - waveColor: voiceRecordingConfig?.waveStyle?.waveColor ?? - Colors.black, + waveColor: + voiceRecordingConfig?.waveStyle?.waveColor ?? + Colors.black, ), ), ) diff --git a/lib/src/widgets/image_message_view.dart b/lib/src/widgets/image_message_view.dart index d022c5ba..aaf139ca 100644 --- a/lib/src/widgets/image_message_view.dart +++ b/lib/src/widgets/image_message_view.dart @@ -72,7 +72,8 @@ class ImageMessageView extends StatelessWidget { mainAxisAlignment: isMessageBySender ? MainAxisAlignment.end : MainAxisAlignment.start, children: [ - if (isMessageBySender && !(imageMessageConfig?.hideShareIcon ?? false)) iconButton, + if (isMessageBySender && !(imageMessageConfig?.hideShareIcon ?? false)) + iconButton, Stack( children: [ GestureDetector( @@ -141,7 +142,8 @@ class ImageMessageView extends StatelessWidget { ), ], ), - if (!isMessageBySender && !(imageMessageConfig?.hideShareIcon ?? false)) iconButton, + if (!isMessageBySender && !(imageMessageConfig?.hideShareIcon ?? false)) + iconButton, ], ); } diff --git a/lib/src/widgets/send_message_widget.dart b/lib/src/widgets/send_message_widget.dart index d69ec8ee..e11d88ad 100644 --- a/lib/src/widgets/send_message_widget.dart +++ b/lib/src/widgets/send_message_widget.dart @@ -49,7 +49,6 @@ class SendMessageWidget extends StatefulWidget { /// Provides configuration for text field appearance. final SendMessageConfiguration? sendMessageConfig; - /// Allow user to set custom text field. final ReplyMessageWithReturnWidget? sendMessageBuilder; @@ -115,7 +114,9 @@ class SendMessageWidgetState extends State { child: Container( height: MediaQuery.of(context).size.height / ((!kIsWeb && Platform.isIOS) ? 24 : 28), - color: chatListConfig.chatBackgroundConfig.backgroundColor ?? Colors.white, + color: + chatListConfig.chatBackgroundConfig.backgroundColor ?? + Colors.white, ), ), Padding(