@@ -199,42 +199,41 @@ class _ChatViewState extends State<ChatView>
199
199
child: SuggestionsConfigIW (
200
200
suggestionsConfig: widget.replySuggestionsConfig,
201
201
child: Builder (builder: (context) {
202
- return Stack (
203
- children: [
204
- Container (
205
- height: chatBackgroundConfig.height ??
206
- MediaQuery .of (context).size.height,
207
- width: chatBackgroundConfig.width ??
208
- MediaQuery .of (context).size.width,
209
- decoration: BoxDecoration (
210
- color: chatBackgroundConfig.backgroundColor ?? Colors .white,
211
- image: chatBackgroundConfig.backgroundImage != null
212
- ? DecorationImage (
213
- fit: BoxFit .fill,
214
- image: NetworkImage (
215
- chatBackgroundConfig.backgroundImage! ),
216
- )
217
- : null ,
218
- ),
219
- padding: chatBackgroundConfig.padding,
220
- margin: chatBackgroundConfig.margin,
221
- child: Column (
222
- children: [
223
- if (widget.appBar != null ) widget.appBar! ,
224
- Expanded (
225
- child: ConfigurationsInheritedWidget (
226
- chatBackgroundConfig: widget.chatBackgroundConfig,
227
- reactionPopupConfig: widget.reactionPopupConfig,
228
- typeIndicatorConfig: widget.typeIndicatorConfig,
229
- chatBubbleConfig: widget.chatBubbleConfig,
230
- replyPopupConfig: widget.replyPopupConfig,
231
- messageConfig: widget.messageConfig,
232
- profileCircleConfig: widget.profileCircleConfig,
233
- repliedMessageConfig: widget.repliedMessageConfig,
234
- swipeToReplyConfig: widget.swipeToReplyConfig,
235
- emojiPickerSheetConfig: widget.emojiPickerSheetConfig,
236
- scrollToBottomButtonConfig:
237
- widget.scrollToBottomButtonConfig,
202
+ return ConfigurationsInheritedWidget (
203
+ chatBackgroundConfig: widget.chatBackgroundConfig,
204
+ reactionPopupConfig: widget.reactionPopupConfig,
205
+ typeIndicatorConfig: widget.typeIndicatorConfig,
206
+ chatBubbleConfig: widget.chatBubbleConfig,
207
+ replyPopupConfig: widget.replyPopupConfig,
208
+ messageConfig: widget.messageConfig,
209
+ profileCircleConfig: widget.profileCircleConfig,
210
+ repliedMessageConfig: widget.repliedMessageConfig,
211
+ swipeToReplyConfig: widget.swipeToReplyConfig,
212
+ emojiPickerSheetConfig: widget.emojiPickerSheetConfig,
213
+ scrollToBottomButtonConfig: widget.scrollToBottomButtonConfig,
214
+ child: Stack (
215
+ children: [
216
+ Container (
217
+ height: chatBackgroundConfig.height ??
218
+ MediaQuery .of (context).size.height,
219
+ width: chatBackgroundConfig.width ??
220
+ MediaQuery .of (context).size.width,
221
+ decoration: BoxDecoration (
222
+ color: chatBackgroundConfig.backgroundColor ?? Colors .white,
223
+ image: chatBackgroundConfig.backgroundImage != null
224
+ ? DecorationImage (
225
+ fit: BoxFit .fill,
226
+ image: NetworkImage (
227
+ chatBackgroundConfig.backgroundImage! ),
228
+ )
229
+ : null ,
230
+ ),
231
+ padding: chatBackgroundConfig.padding,
232
+ margin: chatBackgroundConfig.margin,
233
+ child: Column (
234
+ children: [
235
+ if (widget.appBar != null ) widget.appBar! ,
236
+ Expanded (
238
237
child: Stack (
239
238
children: [
240
239
if (chatViewState.isLoading)
@@ -301,22 +300,22 @@ class _ChatViewState extends State<ChatView>
301
300
],
302
301
),
303
302
),
304
- ),
305
- ],
306
- ),
307
- ),
308
- if (featureActiveConfig.enableReactionPopup)
309
- ValueListenableBuilder <bool >(
310
- valueListenable: context.chatViewIW! .showPopUp,
311
- builder: (_, showPopupValue, child) {
312
- return ReactionPopup (
313
- key: context.chatViewIW! .reactionPopupKey,
314
- onTap: () => _onChatListTap (context),
315
- showPopUp: showPopupValue,
316
- );
317
- },
303
+ ],
304
+ ),
318
305
),
319
- ],
306
+ if (featureActiveConfig.enableReactionPopup)
307
+ ValueListenableBuilder <bool >(
308
+ valueListenable: context.chatViewIW! .showPopUp,
309
+ builder: (_, showPopupValue, child) {
310
+ return ReactionPopup (
311
+ key: context.chatViewIW! .reactionPopupKey,
312
+ onTap: () => _onChatListTap (context),
313
+ showPopUp: showPopupValue,
314
+ );
315
+ },
316
+ ),
317
+ ],
318
+ ),
320
319
);
321
320
}),
322
321
),
0 commit comments