Capturable
Capturable copied to clipboard
New Modifier API: Capture from canvas directly without `AndroidView`
Discussed in https://github.com/PatilShreyas/Capturable/discussions/98
Originally posted by yschimke June 8, 2023 Could Capturable use this alpha API to capture the image instead of an AndroidView?
https://cs.android.com/androidx/platform/frameworks/support/+/f60a1149f00d6cc5972e9bd4057eb4a15505b468:compose/ui/ui-graphics/samples/src/main/java/androidx/compose/ui/graphics/samples/DrawScopeSample.kt;l=131
https://twitter.com/riggaroo/status/1693961082761625825?t=kfgghffcZXsuhus0txy90w&s=19
Think you saw this already
I tested the code you put in the #103 and the problem with capturing scrollable content continues, even though you mentioned that the new API solved this problem. Is it really working for you? Is there anything else that needs to be done to make Column(Modifier.verticalScroll()) work? It also doesn't work with documentation snippet.
@jsericksk Yes, when I tested, it worked nicely. Can you share me a snippet or a sample?
Sorry, @PatilShreyas. I realized that when I was testing, I was applying Modifier.capturable() to the parent component and not to the capturable component directly, so I was only capturing the currently visible part. It's working normally now. Looking forward to the next release!
This issue has been fixed and released in version 2.0.0.