From f143f86732ca7a7a2fc60e6898f20c64b764041f Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Thu, 6 Feb 2025 14:50:31 +0100 Subject: [PATCH] minor fix --- lib/widgets/map/scroller.dart | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/lib/widgets/map/scroller.dart b/lib/widgets/map/scroller.dart index 9e8befb6b..f58f19e3e 100644 --- a/lib/widgets/map/scroller.dart +++ b/lib/widgets/map/scroller.dart @@ -97,16 +97,21 @@ class _MapEntryScrollerState extends State { ], ), Positioned.fill( - child: ValueListenableBuilder( - valueListenable: widget.regionCollectionNotifier, - builder: (context, regionCollection, child) { - return regionCollection != null && regionCollection.isEmpty - ? EmptyContent( - text: context.l10n.mapEmptyRegion, - alignment: Alignment.center, - fontSize: 18, - ) - : const SizedBox(); + child: ValueListenableBuilder( + valueListenable: _infoEntryNotifier, + builder: (context, infoEntry, child) { + return ValueListenableBuilder( + valueListenable: widget.regionCollectionNotifier, + builder: (context, regionCollection, child) { + return infoEntry == null && regionCollection != null && regionCollection.isEmpty + ? EmptyContent( + text: context.l10n.mapEmptyRegion, + alignment: Alignment.center, + fontSize: 18, + ) + : const SizedBox(); + }, + ); }, ), ),