Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ph-no-capture for Flutter widgets #137

Open
marandaneto opened this issue Dec 19, 2024 · 2 comments
Open

Support ph-no-capture for Flutter widgets #137

marandaneto opened this issue Dec 19, 2024 · 2 comments
Labels
enhancement New feature or request Session Replay

Comments

@marandaneto
Copy link
Member

Problem Statement

Android, iOS, and RN have a way of masking specific elements, but Flutter not yet

Solution Brainstorm

https://posthog.com/docs/session-replay/privacy

Tag widgets with the ph-no-capture or a view modifier and mask them when taking screenshots

@marandaneto marandaneto added enhancement New feature or request Session Replay labels Dec 19, 2024
@marandaneto
Copy link
Member Author

marandaneto commented Dec 19, 2024

@thisames any ideas on how to do this?

I believe something like:

Text(
	"Capture",
).phNoCapture(true),

or specific accessibility labels - I'd avoid this if possible.

or a wrapper:

const PostHogNoMaskWidget(child: Text('...'))

@thisames
Copy link
Contributor

yes, I believe that with wrapper is the most easy way to do. But, I will analise which more make sense based in currently strucuture of masking and painting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Session Replay
Projects
None yet
Development

No branches or pull requests

2 participants