From 28bb5c0aa3279c3ddef13c446c9ac91c0fabc023 Mon Sep 17 00:00:00 2001 From: realth000 Date: Wed, 4 Sep 2024 00:00:47 +0800 Subject: [PATCH] feat(utils): Update image bottom sheet style --- lib/utils/show_bottom_sheet.dart | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/lib/utils/show_bottom_sheet.dart b/lib/utils/show_bottom_sheet.dart index f7684b40..533eece2 100644 --- a/lib/utils/show_bottom_sheet.dart +++ b/lib/utils/show_bottom_sheet.dart @@ -86,17 +86,22 @@ Future showImageActionBottomSheet({ ), body: Column( children: [ - ConstrainedBox( - constraints: const BoxConstraints(maxHeight: 200), - child: Card( - color: Theme.of(context).colorScheme.surfaceContainer, - child: Padding( - padding: edgeInsetsL16T16R16B16, - child: NetworkIndicatorImage(imageUrl), + Row( + children: [ + Expanded( + child: ColoredBox( + color: Theme.of(context).colorScheme.surfaceContainerLow, + child: ConstrainedBox( + constraints: const BoxConstraints(maxHeight: 100), + child: Padding( + padding: edgeInsetsT4B4, + child: NetworkIndicatorImage(imageUrl), + ), + ), + ), ), - ), + ], ), - sizedBoxW12H12, Expanded( child: SingleChildScrollView( child: Column(