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(); + }, + ); }, ), ),