For a background element, I'm trying to simply draw a very large filled circle that is offset so that only part of it shows at the bottom. I've got it working to show the circle with an offset, but it seems to only be allowing a max width/height of the parent view, rather than the full size of the circle.
For instance, I have the code below which shows the circle, but changing the size to something like 1000 I would think should make it much larger and span across the bottom of the screen better (needing this to match our designs), but it doesn't; it preserves the size:
Canvas(modifier = Modifier
.size(516.dp)
.offset(x = (-190).dp, y = (200).dp)
.align(alignment = Alignment.BottomStart),
onDraw = {
drawCircle(color = Color.DarkGray)
}
)
Once I hit around 400dp (which is about the width of my screen), it simply won't get larger when I increase further. Is there a way to tell it to ignore the size of the parent view and just span however big I tell it to?