jetc.dev Newsletter Issue #20
dev14 was released, with a ton of changes on the Compose UI side. Beyond that,
we look at server-driven UI, Figma, and function lengths.
One Off the Stack, One Off the Slack
You’ve got questions. That’s understandable!
Once again, there were few good questions in Stack Overflow in
Posts, videos, and other new information related to Jetpack Compose!
They got rid of the
Px type and types that depended upon it. Either use
Dp or use plain
Int values to represent pixels.
AdapterList is now renamed
LazyColumnItems, and we have a new
LazyRowItems counterpart for a horizontally-scrolling
roster of items.
ConstraintLayout has a new DSL.
Modifier.ripple() is now
deprecated. And there are many more changes!
Note that the next Compose release will not be until July 22nd.
Siva Ganesh Kantamani writes about implementing server-driven UI in Compose. “Server-driven UI” means that the server provides UI instructions, not just model data that client-side code has to render.
I delivered a light presentation to a couple of Meetup groups on how to plan ahead for when Jetpack Compose eats the Android world, a couple of years from now. Plus, you get to see what my office looks like.
100% pure code!
…And One More Thing
I have not played with CaelumF’s Figma-to-Compose converter, mostly due to my limited Figma skills.
However, these sorts of tools will be good additions to the Compose ecosystem. A lot of attention will be paid to helping app developers migrate from classic views to Compose, and that certainly is important. But, in the long term, we are going to be doing more “greenfield” Compose development, where projects start with Compose. Yet, it may take some time for firms like Figma to offer Compose options directly in their own products.
Partly, our own tools can help speed up those new Compose projects. Perhaps more importantly, though, our own tools can be used to help show Figma what sorts of data should get collected in Figma itself, to help us more faithfully represent those designs in Compose code. And, of course, Figma is not the only player in this space, so similar tools for Sketch, Zeplin, etc. may also prove to be rather useful.
- 2023-11-21: Compose/Material3/Wear Compose updates! remember()! Adaptive layouts! Compose Multiplatform in 2024! @email@example.com on BasicTextField2()! Compose Multiplatform charts! And... is TV Compose in trouble?!?
- 2023-11-14: Compose Compiler! BasicTextField2()! @firstname.lastname@example.org and animations! Optimization! @email@example.com, JetBrains, and Fleet! JetBrains and plotting! And... we collapse?!?
- 2023-11-07: Compose Multiplatform! Chips in fields! Diffing! Custom fonts in Glance app widgets! Heatmaps! PIN input! And @firstname.lastname@example.org is in a bit of a haze?!?