https://kotlinlang.org logo
#compose
Title
# compose
i

iamraghavawasthi

08/23/2021, 9:05 AM
Hey I want to make the Height Of an Item of LazyColumn to fill complete height.
I tried a couple of things like Modifier.fillmaxSize() and the only way it works is by hardcoding Height values in child composable
That would make it irresponsive
Any help on that would help
a

Albert Chang

08/23/2021, 9:15 AM
Modifier.fillParentMaxHeight()
i

iamraghavawasthi

08/23/2021, 11:58 AM
This doesn't exist on 1.0.0 release
within ConstraintLayout
@Albert Chang
a

Albert Chang

08/23/2021, 12:28 PM
So is your item in LazyColumn or ConstraintLayout?
b

Berkeli Alashov

08/23/2021, 8:01 PM
You can wrap your LazyColumn in BoxWithConstraints to get maxHeight and apply that height to your list item height.
a

Albert Chang

08/23/2021, 11:56 PM
@Berkeli Alashov That's not really a good way. It's unnecessary and inefficient.
🙏 2
i

iamraghavawasthi

08/24/2021, 4:21 PM
Thanks alot @Albert Chang @Berkeli Alashov
y

yogaboy

08/25/2021, 3:10 PM
@iamraghavawasthi pls how do you achieve frosty blur background? Not just alpha 😔
or is it just alpha?
i

iamraghavawasthi

10/08/2021, 6:07 AM
@yogaboy Just saw your message, Hope I am not too late. I used Coil and applied Blur Transformation
Copy code
val painter =rememberImagePainter(
    article!!.article.img, builder =
{
    transformations(BlurTransformation(LocalContext.current))
})
and then i passed this painter to Image Component
👍🏻 1
🙏🏻 1
y

yogaboy

10/09/2021, 7:54 PM
@iamraghavawasthi Thank you!
2 Views