1.4.0
Common
Features
- Support perspective projection and
cameraDistanceparameter ingraphicsLayer - Support
brushparameter inTextStylefor complex coloring - Support
drawStyleparameter inTextStylefor drawing outlined text - Support
blendModeparameter when drawing text on Canvas - Support compositing strategy on
graphicsLayer - Add
minLinesparameter toBasicTextField - Support
painterResourcefunction 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/actualfunction 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
AlertDialogwidth to match the maximum of its content - Change
ContextMenuAreato 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
SplitPanewith a modifier - Fix applying
ComposePanelvisibility
Web
Compose for Webis renamed toCompose HTML Library- The new experimental
Compose for Webbased 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
ParagraphLayouterclassinternalas designed androidx.compose.foundation.v2.ScrollbarAdapteris 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: