Skip to content

Commit 6582b4d

Browse files
committed
Add note about third party widgets
1 parent f827f58 commit 6582b4d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

platform-includes/replay/privacy-configuration/dart.flutter.mdx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
Masking in the Sentry Flutter SDK is based on Widget _types_, e.g. `Image`, not the string representation of the type (i.e. we check whether
22
a `widgetInstance` should be masked by checking `if (widgetInstance is Image)` instead of `if (widgetInstance.runtimeType == 'Image')`).
33
This means we can ensure masking works regardless of obfuscation in release builds and also works for subclasses.
4-
However, it also means we can only automatically mask widgets that are part of the Flutter SDK itself.
5-
6-
<Alert level="warning">
7-
We cannot mask widgets defined in various 3rd-party packages (because the type is not known in the Sentry Flutter SDK),
8-
even though many should be masked.
9-
10-
Therefore, you need to consider the widgets your application uses and ensure they're masked correctly with custom masking rules.
11-
Examples of widgets that usually should be masked include (but are not limited to): VideoPlayer, WebView, Chart, FlutterMap etc.
12-
13-
</Alert>
14-
4+
This approach allows the SDK to automatically mask widgets that are part of the Flutter SDK itself. However, for third-party widgets, you need to manually configure the privacy settings to mask their content. Read more about [Third Party Widgets](#third-party-widgets) below.
155

166
## Privacy Configuration
177

0 commit comments

Comments
 (0)