mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-26 10:33:15 +03:00
fix flicker of screen capability chip
This commit is contained in:
parent
18718921cb
commit
f5efe62744
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user