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
@Composable
fun MainMenuScreenView() {
ConstraintLayout {
// Create references for the composables to constrain
val (button, text) = createRefs()
Button(
onClick = { /* Do something */ },
// Assign reference "button" to the Button composable
// and constrain it to the top of the ConstraintLayout
modifier = Modifier.constrainAs(button) {
top.linkTo(parent.top, margin = 16.dp)
}
) {
Text("Button")
}
// Assign reference "text" to the Text composable
// and constrain it to the bottom of the Button composable
Text(
"Text",
Modifier.constrainAs(text) {
top.linkTo(button.bottom, margin = 16.dp)
}
)
}
}
And, finally, I deployed my app to the server and then run it in browser.
Not a single view was drawn. Instead of it I got errors in console:
I get this error even if I put only empty ConstraintLayout {} to my view.
Is there something I did wrong, or it's a problem of library?
The text was updated successfully, but these errors were encountered:
I downloaded the library to my
commonMain
block:Then inserted the example code in my app:
And, finally, I deployed my app to the server and then run it in browser.
Not a single view was drawn. Instead of it I got errors in console:
I get this error even if I put only empty
ConstraintLayout {}
to my view.Is there something I did wrong, or it's a problem of library?
The text was updated successfully, but these errors were encountered: