8000 Release 1.8.2 Β· JetBrains/compose-multiplatform Β· GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

1.8.2

Latest
Compare
Choose a tag to compare
@jb-compose-bot jb-compose-bot released this 17 Jun 17:41
a149d0f

Changes since 1.8.1

Fixes

Multiple Platforms

  • Fixed TextField(TextFieldValue) when used with a visual transformation with a non-identity offset mapping (potentially even crashing) #2130

  • Fixed a memory leak and performance degradation when ComposeUiFlags.isRectTrackingEnabled set to true (by default) #2123

  • Fixed caret placement near glyphs if glyphs are compound symbols and part of them are non-spacing marks #2155

  • Support Preview parameters for Previews in common source sets in IJ and AS. Note: IDEs also need to implement support on their end. Please check the respective IDE release notes to confirm this is supported #5323

    Example usage:

    import androidx.compose.runtime.Composable
    import org.jetbrains.compose.ui.tooling.preview.Preview
    import org.jetbrains.compose.ui.tooling.preview.PreviewParameter
    import org.jetbrains.compose.ui.tooling.preview.PreviewParameterProvider
    
    class MyPreviewParameterProvider : PreviewParameterProvider<String> {
      override val values = sequenceOf("Hello, Compose!", "Hello, World!")
    }
    
    /**
     * This function will generate two preview images with different texts.
     */
    @Preview
    @Composable
    fun MyPreview(@PreviewParameter(MyPreviewParameterProvider::class) text: String) {
      Text(text)
    }
    

Desktop

  • Fix the positioning of the IME popup being too far away from the text, on screens with density greater than 1.0 #2158

Navigation

  • Fix the browser navigation integration problem due encoded routes #2143
  • Fix a crash on iOS when a NavHost is located in a scrollable container #2146

Dependencies

0