Jetpack Compose version 1.11 has landed! :tada: S...
# compose
r
Jetpack Compose version 1.11 has landed! 🎉 So many new APIs to try out along with some important changes. We've also detailed 4 (!) new large Experimental APls that we are actively looking for feedback on: Styles! Grid FlexBox MediaQuery Let us know what you think and what you'd like to see next 🤓 https://android-developers.googleblog.com/2026/04/jetpack-compose-april-2026-updates.html?m=1
jetpack compose 12
K 4
🎉 25
a
Playing around with the new grid and media query apis and just simplified a foldable optimized layout already 😁
Everything on home uses the new grid now 😁
I mean no more endlessly nested rows + columns if I can help it! I used to be hardcore into webdev too for a while, so I love that my FlexBox + CSS Grid knowledge immediately translates into this. Kudos for good DX here
🎉 2
So much simpler!
(Okay I may have broke things in that code sample when trying to simplify further, but I had it working before!)
a
Would love the ability to nest lazy layouts in same direction, and provide a coordinated way to lazily load nested items :)
And maybe lazy versions of these layouts :)
j
🌯 Preview Wrappers I currently try to use the part of the blog post about preview wrappers and I think there are some issues in the example and some misunderstandings on my side. First of all, the example extends from the annotation class
PreviewWrapper
and uses the
PreviewWrapperProvider
class as annotation, this should be the other way around. The blog post talks about it supporting
@MultiPreview
, am I right in my understanding that this is not any special annotation offered but the custom annotation we have in our project that just uses multiple times the
@Preview
annotation (like this)? If so, this does not seem to work, as the annotation targets functions and not other annotations:
@Target(AnnotationTarget.FUNCTION)
Ok, we have to use the wrapper annotation on each function annotated with the (Multi)Preview annotation. I wonder why thats the case. PreviewWrapperSamples Edit: found an open issue regarding this.