From f73df57c69c63fd6d18b26979fcbad505ca2d024 Mon Sep 17 00:00:00 2001 From: Shu Chen Date: Thu, 25 Jan 2024 12:08:51 +0000 Subject: [PATCH] content [nfc]: Decompose Container in MessageImage --- lib/widgets/content.dart | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/widgets/content.dart b/lib/widgets/content.dart index ff257d8963b..4a29f9b7f83 100644 --- a/lib/widgets/content.dart +++ b/lib/widgets/content.dart @@ -259,16 +259,17 @@ class MessageImage extends StatelessWidget { // The corresponding element on web has a 5px two-sided margin… // and then a 1px transparent border all around. padding: const EdgeInsets.fromLTRB(1, 1, 6, 6), - child: Container( - height: 100, - width: 150, + child: ColoredBox( color: const Color.fromRGBO(0, 0, 0, 0.03), - child: LightboxHero( - message: message, - src: resolvedSrc, - child: RealmContentNetworkImage( - resolvedSrc, - filterQuality: FilterQuality.medium)))))); + child: SizedBox( + height: 100, + width: 150, + child: LightboxHero( + message: message, + src: resolvedSrc, + child: RealmContentNetworkImage( + resolvedSrc, + filterQuality: FilterQuality.medium))))))); } }