Fix viewer buttons visible even when detail pane is opened

This commit is contained in:
Ming Ming 2023-08-09 22:42:43 +08:00
parent f8882de9d7
commit 0932a17d8e

View file

@ -130,8 +130,9 @@ class _ViewerState extends State<Viewer>
extendBodyBehindAppBar: true,
extendBody: true,
appBar: _isShowAppBar ? _buildAppBar(context) : null,
bottomNavigationBar:
_isShowAppBar ? _buildBottomAppBar(context) : null,
bottomNavigationBar: _isShowAppBar && !_isDetailPaneActive
? _buildBottomAppBar(context)
: null,
body: Builder(
builder: (context) => _buildContent(context, originalBrightness),
),