ensure bottom bar is below the metadata panel - move the bottom bar from bottomNavigationBar into the Stack

pull/24428/head
kao-byte 2025-12-07 18:06:42 +11:00
parent 8cbc82182e
commit dac03afe47
No known key found for this signature in database
GPG Key ID: 6BFA3A267DAB6B25
1 changed files with 12 additions and 8 deletions

View File

@ -695,16 +695,20 @@ class _AssetViewerState extends ConsumerState<AssetViewer> {
backgroundDecoration: BoxDecoration(color: backgroundColor), backgroundDecoration: BoxDecoration(color: backgroundColor),
enablePanAlways: true, enablePanAlways: true,
), ),
if (!showingBottomSheet)
Positioned(
bottom: 0,
left: 0,
right: 0,
child: Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [const AssetStackRow(), const ViewerBottomBar()],
),
),
], ],
), ),
bottomNavigationBar: showingBottomSheet
? const SizedBox.shrink()
: const Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [AssetStackRow(), ViewerBottomBar()],
),
), ),
); );
} }