Dmitriy Tarasevich
03/18/2024, 12:30 PMColorDodge
effect to work without strange artifacts. I get this flash of Gray on the shape before the blend mode is applied. There is the code that I am using
fun Modifier.dodge(
cornerRadius: Dp = 16.dp,
shapeColor: DodgeColor = DodgeColor.GRAY1,
): Modifier {
return composed {
this
.drawWithContent {
drawRoundRect(
cornerRadius = CornerRadius(cornerRadius.toPx()),
color = Color(parseColor(shapeColor.color)),
blendMode = BlendMode.ColorDodge,
)
drawContent()
}
}
}
And an example of what the issue isDmitriy Tarasevich
03/18/2024, 12:30 PMbrandonmcansh
03/18/2024, 1:09 PMDmitriy Tarasevich
03/18/2024, 8:35 PMDmitriy Tarasevich
03/18/2024, 11:48 PMDmitriy Tarasevich
03/19/2024, 12:26 AM