Cédric
06/21/2023, 2:33 PMcanvas and BlendMode in order to accomplish some effects.
I would appreciate a review of it and have your advice if I can make some improvements.
Source code:
https://github.com/kosher9/Compose_Nice_CheckBox
This is the resultAlbert Chang
06/22/2023, 2:41 AMModifier.toggleable() instead of Modifier.selectable(). Read the doc of Modifier.selectable() for the difference between them.
2. saveLayer is very inefficient. Use Modifier.graphicsLayer(compositingStrategy = CompositingStrategy.Offscreen) instead of that.
3. What is tickPaint for? You are not using it.Tobias Suchalla
06/22/2023, 10:22 AMCédric
06/22/2023, 1:10 PMModifier.toggleable() is more appropriate here.
• There is definitely a lot to learn on Modifier 😅. I struggled a lot to find a way to achieve this BlendMode effect. saveLayer was my only one option so far. Thanks.
• I am using the tickPaint now.Cédric
06/22/2023, 1:11 PM