robercoding
01/19/2023, 8:05 AMBox?
I have a background Box with Color.Black.copy(0.5f) and another Box on top of it with Color.White and some more padding. (Acting like a Card)
When I click on the top box: It scales out to 0.7f and dim with the same color value as the background box (Color.Black.copy(0.5f)) and seems like there's a white line separating both components, like the background doesn't fill the whole "Top box"
I'm attaching a video and a sample project in the 🧵
Edit: "Partially solved" - add .border(0.dp, dimOverlay) 😅robercoding
01/19/2023, 8:05 AMrobercoding
01/19/2023, 8:05 AMrobercoding
01/19/2023, 8:06 AMrobercoding
01/19/2023, 8:10 AMrobercoding
01/19/2023, 8:13 AMrobercoding
01/19/2023, 8:53 AMdrawRect(cardOverlay) use:
drawRect(cardOverlay, topLeft = Offset(-0.2f, -0.5f),size = Size(this.size.width + 0.5f, this.size.height + 1))robercoding
01/19/2023, 8:55 AMrobercoding
01/19/2023, 9:47 AMscale method and instead use width(((screenWidthDp - 24.dp) * scaleValue).dp)
And the same for height, it doesn't show any white line. Of course I want to also scale the children so it's not a good optionrobercoding
01/19/2023, 11:08 AMrobercoding
01/19/2023, 11:32 AM.border(0.dp, dimOverlay)robercoding
01/19/2023, 11:42 AMrobercoding
01/19/2023, 11:44 AMrobercoding
01/22/2023, 7:21 AM