Compose 1.4.1 out yesterday :tada: - fairly small ...
# compose
c
Compose 1.4.1 out yesterday 🎉 • fairly small bump. most artifacts saw no changes Material3 Version 1.1.0-beta02 out • mostly bottom sheet changes! (bottom sheets and password manager input are my biggest issues with compose, so bottom sheet changes are welcome 😄 ) •
SheetState
now has optional
skipHiddenState
parameter •
rememberStandardBottomSheetState
now has optional
skipHiddenState
parameter •
BottomSheetScaffold
now has a defined Hidden anchor, though it is disabled by default •
SheetState.requireOffset
documentation has been updated •
BottomSheetDefaults.MinimizedShape
has been renamed as
BottomSheetDefaults.HiddenShape
(I839f4, b/273870234) •
ModalBottomSheet
and
BottomSheetScaffold
drag handle semantics are now merged. (I05afb) •
BottomSheetScaffold
modifier,
containerColor
and
contentColor
parameters now only affect content. •
BottomSheetScaffold nestedScroll
for sheet content now implements flings. (I992cb) other compose artifacts Version 1.5.0-alpha02 • New experimental API to support lookahead in
SubcomposeLayout
. This will allow
SubcomposeLayout
to function properly in a
LookaheadScope
. More out-of-the-box support for specific subtypes of
SubcomposeLayout
will come soon. • New
SubcomposeLayout
API that takes an additional intermediate measure policy for handling measure/layout logic during lookahead-based animations. (I017d3) • 👀 Added the
InsertTextAtCursor
semantics action for text fields. (I11ed5) (gotta check this out. seems useful) • Adds support for cross axis spacing/arrangement using the
verticalArrangement
in
FlowRow
and
horizontalArrangement
in
FlowColumn
. We also remove the top-level
verticalAlignment
and
horizontalAlignment
in
FlowRow/FlowColumn
. Developers can use
Modifier.align
instead. This reduces confusion between the naming conventions of
verticalAlignment
and
verticalArrangement
. (I87b60, b/268365538) • Added support for fixed size cells in
LazyGrid
and arranging them with cross axis arrangement. (I83ed9, b/235121277, b/267942510) • Added support for fixed size lanes in
LazyStaggeredGrid
and arranging them with cross axis arrangement. (I7d519) • Fixed a bug where
BottomSheetScaffold
would crash when provided with empty content for slots. (Ib24a5, b/235588730) • Fixes
PullRefreshIndicator
intercepting clicks / pointer events (2494256, b/271777421) • some interesting runtime/slottable stuff if you're interested in that stuff sidenote, since #compose and #compose-android are a thing... maybe i split these up. hrm
🎉 15
👀 1
s
Btw, the "`SlotTable` stuff", outside of perf related things, should fix early return from lambdas/crossinline lambdas not being executed correctly. This, with the latest compiler release, fixes all known bugs about early returns, but let us know if you find more!
c
Additionally the same change was cherry-picked into the 1.4.1 version of the runtime.
f
@Colton Idle curious to hear what your issues with password input are? For me it’s that using the visualtransformation is just over complicated. Also wish there was a compose equivalent of SwittUI SecureField
c
I can't use my 1password account with my own compose apps that I build. lol I think romainguy said the team is aware. but yeah. its like 2 years of not being able to use my password manager to log into my own apps. it hurts so much.
f
Yeah, I was looking at a 1password forum thread. there is an
AutofillNode
but only works with native android login 😞 Not sure if 1password needs to update or compose https://bryanherbst.com/2021/04/13/compose-autofill/
z
Francisco you might be interested in https://android-review.googlesource.com/c/platform/frameworks/support/+/2519909. It’s nowhere near production ready yet, but we’re playing around with some new APIs. Stay tuned for more info about this in the coming months. (Cc @Halil Ozercan)
c
@Zach why is something like that needed? I don't remember the view system having something like that?