From 4fb906160c9fc580f519c8614732a7fe8461b9f8 Mon Sep 17 00:00:00 2001 From: Kelrap Date: Mon, 10 Nov 2025 15:19:29 -0500 Subject: [PATCH] Move chat view safe area to include background image --- lib/pages/chat/chat_view.dart | 71 ++++++++++++++++++----------------- 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/lib/pages/chat/chat_view.dart b/lib/pages/chat/chat_view.dart index 0e60f595f..a72f45890 100644 --- a/lib/pages/chat/chat_view.dart +++ b/lib/pages/chat/chat_view.dart @@ -329,32 +329,33 @@ class ChatView extends StatelessWidget { // onDragEntered: controller.onDragEntered, // onDragExited: controller.onDragExited, // child: Stack( - body: Stack( - // Pangea# - children: [ - if (accountConfig.wallpaperUrl != null) - Opacity( - opacity: accountConfig.wallpaperOpacity ?? 0.5, - child: ImageFiltered( - imageFilter: ui.ImageFilter.blur( - sigmaX: accountConfig.wallpaperBlur ?? 0.0, - sigmaY: accountConfig.wallpaperBlur ?? 0.0, - ), - child: MxcImage( - cacheKey: accountConfig.wallpaperUrl.toString(), - uri: accountConfig.wallpaperUrl, - fit: BoxFit.cover, - height: MediaQuery.of(context).size.height, - width: MediaQuery.of(context).size.width, - isThumbnail: false, - placeholder: (_) => Container(), + body: SafeArea( + child: Stack( + // Pangea# + children: [ + if (accountConfig.wallpaperUrl != null) + Opacity( + opacity: accountConfig.wallpaperOpacity ?? 0.5, + child: ImageFiltered( + imageFilter: ui.ImageFilter.blur( + sigmaX: accountConfig.wallpaperBlur ?? 0.0, + sigmaY: accountConfig.wallpaperBlur ?? 0.0, + ), + child: MxcImage( + cacheKey: accountConfig.wallpaperUrl.toString(), + uri: accountConfig.wallpaperUrl, + fit: BoxFit.cover, + height: MediaQuery.of(context).size.height, + width: MediaQuery.of(context).size.width, + isThumbnail: false, + placeholder: (_) => Container(), + ), ), ), - ), - SafeArea( // #Pangea + // SafeArea( // child: Column( - child: Stack( + Stack( children: [ Column( // Pangea# @@ -529,19 +530,19 @@ class ChatView extends StatelessWidget { // Pangea# ], ), - ), - // #Pangea - // if (controller.dragging) - // Container( - // color: theme.scaffoldBackgroundColor.withAlpha(230), - // alignment: Alignment.center, - // child: const Icon( - // Icons.upload_outlined, - // size: 100, - // ), - // ), - // Pangea# - ], + // #Pangea + // if (controller.dragging) + // Container( + // color: theme.scaffoldBackgroundColor.withAlpha(230), + // alignment: Alignment.center, + // child: const Icon( + // Icons.upload_outlined, + // size: 100, + // ), + // ), + // Pangea# + ], + ), ), ); },