# Potential Bug: region.didEnter triggers on exit, not entry (Flutter SDK)

**URL:** <https://forum.woosmap.com/t/potential-bug-region-didenter-triggers-on-exit-not-entry-flutter-sdk/176>\
**Category:** Ask the community\
**Tags:** geofencing\
**Created:** [October 15, 2025, 9:16am UTC](https://forum.woosmap.com/t/potential-bug-region-didenter-triggers-on-exit-not-entry-flutter-sdk/176 "2025-10-15T09:16:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![berger](https://avatars.discourse-cdn.com/v4/letter/b/898d66/32.png) [@berger](https://forum.woosmap.com/u/berger)\
**Post date:** [October 15, 2025, 9:16am UTC](https://forum.woosmap.com/t/potential-bug-region-didenter-triggers-on-exit-not-entry-flutter-sdk/176/1 "2025-10-15T09:16:48Z")

</div>

region.didEnter is only true if the position changes from inside to outside the region. So the variable should be called didExit. However, I need the scenario where the user enters the region. Could it be that there is a bug in the Flutter SDK and didEnter and didExit have been accidentally swapped?

```auto
...
final watchRegionStream = geofencingService.getWatchRegionStream();
    watchRegionStream?.listen((region) {
      if (region.didEnter) {
        final waypoint = waypoints.firstWhereOrNull((w) => w.id == region.identifier);
        if (waypoint != null) {
          geofencingRepo.addVisitedWaypoint(waypoint);
        }
      }
      debugPrint('region: ${region.eventName}');
    });
...

```

---

<div class="post-metadata">

**Author:** ![Amit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.woosmap.com/amit/32/182_2.png) [@Amit](https://forum.woosmap.com/u/Amit)\
**Post date:** [October 16, 2025, 3:13am UTC](https://forum.woosmap.com/t/potential-bug-region-didenter-triggers-on-exit-not-entry-flutter-sdk/176/2 "2025-10-16T03:13:19Z")

</div>

Hello @berger

Thank you for flagging this out. We will get a fix out in our next version.

Cheers.
