You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support Kotlin 1.9.20 via JetBrains Compose compiler 1.5.3.
@MosaicComposable annotation restricts composable function usage to those meant for Mosaic
(e.g., our Text) or general-purpose (e.g., Compose's remember). In most cases the Compose
compiler can infer this automatically, but it's available for explicit use if needed.
LocalTerminal composition local provides the size of the terminal if it can be detected.
If the size changes, your function will automatically be recomposed with the new values.
val size =LocalTerminal.current.size
Text("Terminal(w=${size.width}, h=${size.height})")
Row, Column, and Box now support horizontal and vertical alignment of their children.
Column {
Text("This is very long")
Text(
"On the right",
modifier =Modifier.align(End),
)
}
Add AnnotatedString with SpanStyle for string customization. Instead of writing a series of Text functions in a Row, emit a single Text with formatting changes within the string.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
New:
Support Kotlin 1.9.20 via JetBrains Compose compiler 1.5.3.
@MosaicComposableannotation restricts composable function usage to those meant for Mosaic(e.g., our
Text) or general-purpose (e.g., Compose'sremember). In most cases the Composecompiler can infer this automatically, but it's available for explicit use if needed.
LocalTerminalcomposition local provides the size of the terminal if it can be detected.If the size changes, your function will automatically be recomposed with the new values.
Row,Column, andBoxnow support horizontal and vertical alignment of their children.Add
AnnotatedStringwithSpanStylefor string customization. Instead of writing a series ofTextfunctions in aRow, emit a singleTextwith formatting changes within the string.Spacernode for occupying space within layouts.Constraints and intrinsics are now available in the layout system.
This version works with Kotlin 1.9.20 by default.
This discussion was created from the release 0.10.0.
Beta Was this translation helpful? Give feedback.
All reactions