minor fix

This commit is contained in:
Thibault Deckers 2025-02-06 14:50:31 +01:00
parent 71b37a9d77
commit f143f86732

View file

@ -97,10 +97,13 @@ class _MapEntryScrollerState extends State<MapEntryScroller> {
],
),
Positioned.fill(
child: ValueListenableBuilder<CollectionLens?>(
child: ValueListenableBuilder<AvesEntry?>(
valueListenable: _infoEntryNotifier,
builder: (context, infoEntry, child) {
return ValueListenableBuilder<CollectionLens?>(
valueListenable: widget.regionCollectionNotifier,
builder: (context, regionCollection, child) {
return regionCollection != null && regionCollection.isEmpty
return infoEntry == null && regionCollection != null && regionCollection.isEmpty
? EmptyContent(
text: context.l10n.mapEmptyRegion,
alignment: Alignment.center,
@ -108,6 +111,8 @@ class _MapEntryScrollerState extends State<MapEntryScroller> {
)
: const SizedBox();
},
);
},
),
),
],