Joseph Hawkes-Cates
06/10/2022, 9:22 PMJoseph Hawkes-Cates
06/10/2022, 9:23 PMBerkeli Alashov
06/11/2022, 4:06 AM// max 5% larger than available width (layout or screen width)
val maxWidth = availableWidth * (1.05)
val modifier = Modifier.widthIn(min=availableWidth, max=maxWidth)
Joseph Hawkes-Cates
06/11/2022, 5:00 PMZach Klippenstein (he/him) [MOD]
06/13/2022, 3:37 PMJoseph Hawkes-Cates
06/13/2022, 4:55 PMweight(0.4f, fill=false)
so it fills 40% of the view up until that exceeds the actual size of the image. The only downside is on smaller screens the image gets a bit smaller than we’d like, but it’s good enough for us for now.