1.4.0
Common
Features
- Support perspective projection and
cameraDistance
parameter ingraphicsLayer
- Support
brush
parameter inTextStyle
for complex coloring - Support
drawStyle
parameter inTextStyle
for drawing outlined text - Support
blendMode
parameter when drawing text on Canvas - Support compositing strategy on
graphicsLayer
- Add
minLines
parameter toBasicTextField
- Support
painterResource
function in common source set
Fixes
- Actually remember provider in
rememberComponentRectPositionProvider
- Fix merging multiple selection areas inside
SelectionContainer
- Fix crash on selecting text if layout result is invalid
- Fix error on call an
expect
/actual
function with default arguments and a Composable argument
iOS
Desktop
Features
- Support external drag and drop
- Animate scroll initiated by mouse wheel input
- Remove AWT dependency in
rememberCursorPositionProvider
- Major scrollbar overhaul
- Scrollbar now works correctly in lazy lists when items vary in size
- Scrollbar now works correctly with lazy list
contentPadding
- Scrollbar now works correctly in lazy list with spacing between items
- Scrollbar now works correctly if the size of the scrollbar doesn't match the size of the widget it scrolls
- Pressing the scrollbar track now works correctly
- Added scrollbar support for lazy grids and text fields
Fixes
- Fix using a custom shape for an
AlertDialog
- Fix
AlertDialog
width to match the maximum of its content - Change
ContextMenuArea
to emit a single element, rather than two elements - Use state hoisting instead of global mouse position to determine where context menus, dropdown menus and tooltips should be displayed
- Limit error dialog width in case of long error message
- Fix window flashing background with unspecified size
- Fix crash
SplitPane
with a modifier - Fix applying
ComposePanel
visibility
Web
Compose for Web
is renamed toCompose HTML Library
- The new experimental
Compose for Web
based on Kotlin/Wasm is available
Tools
Features
Fixes
API Changes
- Remove deprecated
SkiaRootForTest.processPointerInput
- Remove deprecated
PointerEvent.awtEvent
,KeyEvent.awtEvent
- Make accidentally exposed to public
ParagraphLayouter
classinternal
as designed androidx.compose.foundation.v2.ScrollbarAdapter
is introduced in order to allow scrollbars of a size different from the scrolled widget
Dependencies
This version of Compose Multiplatform is based on the next Jetpack Compose libraries: