https://kotlinlang.org logo
#compose
Title
# compose
c

Colton Idle

02/08/2023, 11:03 PM
Update day 🦜 • Apparently compose compiler 1.4.1 and 1.4.2 released in the same day? 1.4.2 w/ Support for Kotlin 1.8.10, and 1.4.1 had some general bug fixes. Bunch of 1.4.0-beta01 updates. Some interesting ones: • Since 1.3, added Emoji compat integration to
Text
and
TextField
, as well as the lower level Paragraph. It is enabled by default when emojicompat is configured. •
EmojiCompat
can be configured on a specific Text using
PlatformParagraphStyle
. • Added common implementation of
PinnableContainer
API used in all
LazyLayouts
to retain items that exit composition, but still need to be active. (If45a4) •
PinnableContainer.PinnedHandle.unpin()
was renamed to
release()
(I4667a) • Fixes an issue where
pullRefresh
was not consuming velocity, causing overscroll to show. Also changed the API signature of the
onRelease
lambda in
Modifier.pullRefresh
to return a Float for consumed velocity (I7db65, b/266874741) •
ComposeNodeLifecycleCallback
was added which allows to observe lifecycle of Compose nodes (I3731b) • Added
waitUntilNodeCount
,
waitUntilAtLeastOneExists
,
waitUntilExactlyOneExists
and
waitUntilDoesNotExist
as experimental API to
ComposeTestRule
, extending the
waitUntil
API to accept any matcher and any count of nodes. See
ComposeTestRule
for further documentation. (Ifa1b9, b/226934294) • Rename
Font.MaximumAsyncTimeout
to
Font.MaximumAsyncTimeoutMillis
. (I07af5) • Removed
GoogleFont.Provider.AllFontsListUri
and linked to it in ktdoc instead. (I16f29) m3 updates 🦜 Version 1.1.0-alpha06 : • Text fields now support prefix and suffix text (Ia8578, b/179884561) • Added a
TimePicker
function to show a time picker following the Material 3 spec, used in conjunction with
TimePickerState
and convenience method
rememberTimePickerState
(I71910) • A date input is now a display mode at the
DatePicker
. Added support for switching between date picker and date input modes. (Ieeff7) • Added API for
RichTextTooltips
. (I58ef3) • Modal bottom sheet implementation for Material 3, including
ModalBottomSheet
and
ModalBottomSheetDefaults
. Also introduces
SheetState
and
rememberSheetState
which can be used for future sheet components. (I0853a, b/244189383) HELL YEAH, TRUE MODAL BOTTOM SHEETS 🦜 🦜 🦜 thanksss @jossiwolf Also sorta related, developer preview 1 of android 14 is also out today!
🎉 22
🦜 10
f

francisco

02/08/2023, 11:26 PM
LETS GO!
t

Tung97 Hl

02/09/2023, 3:36 AM
I can wait for the m3 ModalBottomSheet to remove the m2 dependency 😂
z

Zoltan Demant

02/09/2023, 1:51 PM
PSA #2: If youre planning on using input fields inside a ModalBottomSheet, this doesnt seem to be working at all as of this release.
a

Alex Vanyo

02/09/2023, 6:17 PM
Do you have a bug reported for the input fields inside the
ModalBottomSheet
?
z

zt

02/09/2023, 6:27 PM
There's also issue where the bottom sheet is not at the bottom of the screen when in landscape mode. Don't know if anyones already reported that
z

Zoltan Demant

02/09/2023, 6:31 PM
@Alex Vanyo Not personally, I can report it tomorrow afternoon!
@Alex Vanyo You can find my bug report of it here 🌟
30 Views