fix flicker of screen capability chip

This commit is contained in:
Adam Velebil 2024-04-15 10:51:13 +02:00
parent 18718921cb
commit f5efe62744
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10

View File

@ -484,6 +484,8 @@ class _AppPageState extends ConsumerState<AppPage> {
final l10n = AppLocalizations.of(context)!;
final fullyExpanded = !hasDrawer && hasRail && hasManage;
final showNavigation = ref.watch(_navigationProvider);
final hasDetailsOrKeyActions =
widget.detailViewBuilder != null || widget.keyActionsBuilder != null;
var body = _buildMainContent(context, hasManage);
if (widget.onFileDropped != null) {
@ -543,9 +545,9 @@ class _AppPageState extends ConsumerState<AppPage> {
body
]),
)),
if (hasManage &&
(widget.detailViewBuilder != null ||
widget.keyActionsBuilder != null))
if (!hasDetailsOrKeyActions)
const SizedBox(width: 336), // simulate column
if (hasManage && hasDetailsOrKeyActions)
_VisibilityListener(
controller: _detailsController,
targetKey: _detailsViewGlobalKey,