Compose Version 1.3.0-beta03 released yesterday. S...
# compose
c
Compose Version 1.3.0-beta03 released yesterday. Some interesting things from my point of view • Add options to customize line breaking in Text. (I86907) HELL YEAH • `BringIntoViewResponder`s are now able to get the most up-to-date bounds of a request while processing it. (not sure what this is but seems helpful) • Introduce support for spacings between items to experimental
Staggered Grid
(I10b82) • Introduce content padding to experimental
Staggered Grid
(I342ea) • Added
Modifier.withConsumedWindowInsets()
to get consumed
WindowInsets
for use outside
windowInsetsPadding
. • Added
MutableWindowInsets
to allow easily changing
WindowInsets
without recomposition. • Fix fling animation cancellation issue (i wonder if this fixes flinging bottom sheet modals getting stuck when fully open) • Add a Pull-To-Refresh component to Compose (I29168) OOOH What is this!? Another thing from accompanist that can die? (commit message: Migrates Accompanist's SwipeToRefresh to Compose with major changes.) so yes. it can die it seems. • Behavior Breaking Changes (next two points) • The parameter to
remember
and
rememberCoroutineScope
where changed to be
crossinline
. This will report an error for early returns instead of allowing an early return which will cause a later internal error to be reported. • This change can potentially lead to new compiler errors to be reported requiring non-local returns to be removed from the lambdas passed to these functions. (Ibea62) • AndroidX Activity's
BackHandler
API now works within a
Dialog
composable. (I35342) OH YEAH M3: •
ExposedDropdownMenuDefaults
now exposes a padding value for menu items. (I34ee1) ⚠️ Looks like coil and latest compose don't play well together. https://github.com/coil-kt/coil/issues/1473
🙏🏽 1
🎉 10
🙌 2
🙏 5
❤️ 2