diff --git a/CHANGELOG.md b/CHANGELOG.md index f747639031..ae3c893ceb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ ### Fixes - Replay: fix masking for frames captured during UI changes ([#2553](https://github.com/getsentry/sentry-dart/pull/2553)) +- Replay: fix widget masks overlap when navigating between screens ([#2486](https://github.com/getsentry/sentry-dart/pull/2486), [#2576](https://github.com/getsentry/sentry-dart/pull/2576)) ### Dependencies diff --git a/flutter/lib/src/screenshot/widget_filter.dart b/flutter/lib/src/screenshot/widget_filter.dart index 6dd5f4151d..f78c5f61f9 100644 --- a/flutter/lib/src/screenshot/widget_filter.dart +++ b/flutter/lib/src/screenshot/widget_filter.dart @@ -80,7 +80,7 @@ class WidgetFilter { break; case SentryMaskingDecision.continueProcessing: // If this element should not be obscured, visit and check its children. - element.visitChildElements(_visitList.add); + element.debugVisitOnstageChildren(_visitList.add); break; } }