The Compose for Wear OS team are excited to announce that version 1.1.0 stable has been released. The latest release includes a number of bug fixes and minor UX tidy ups as well as some improvements to the Experimental placeholder UI. Additionally we have released the first 1.2.0 alpha release which adds new functionality for
Just curious about the impl details there: Does this look at
LocalInspectionMode.current
to check if itβs in a
@Preview
, and then do something different to adjust the rendering?
y
yschimke
12/08/2022, 6:34 PM
I guess a combination of things. ScalingLazyColumn already looks at that so that it renders in the first frame in previews. Sounds like @John Nichol fix is to estimate the layout to avoid glitching, and probably just happened to also fix previews
j
John Nichol
12/08/2022, 7:47 PM
We do look at
LocalInspectionMode.current
to work around some limitations of the
@Preview
handling of
LaunchedEffect
. @yschimke is right that I have fixed up some of the initial autocentering calculations which will hopefully lead to a better developer experience.