Improve code

This commit is contained in:
Ming Ming 2024-10-12 16:53:59 +08:00
parent 0c1b2ba979
commit 8bf7964aec

View file

@ -30,7 +30,7 @@ class _AppBar extends StatelessWidget {
),
titleSpacing: 0,
centerTitle: isTitleCentered,
actions: !state.isDetailPaneActive && !state.isZoomed
actions: !state.isDetailPaneActive && state.canOpenDetailPane
? [
...state.appBarButtons
.map((e) => _buildAppBarButton(