We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout bug when in ConstraintLayout (compose)
Here is the screenshot:
Attached my compose layout code:
ConstraintLayout( modifier = Modifier.fillMaxSize(), ) { val (title, picker, btn) = createRefs() var pickerValue by remember { mutableStateOf(2) } Text(text = "Select Next No of People", modifier = Modifier.constrainAs(title) { centerHorizontallyTo(parent) top.linkTo(parent.top) }) NumberPicker( modifier = Modifier .constrainAs(picker) { centerHorizontallyTo(parent) top.linkTo(title.bottom) } .size(100.dp, 200.dp), value = pickerValue, range = 0..10, dividersColor = Color.Cyan, onValueChange = { pickerValue = it } ) Button(onClick = { /*TODO*/ }, modifier = Modifier.constrainAs(btn) { centerHorizontallyTo(parent) bottom.linkTo(parent.bottom) }) { Text(text = "Click") } }
The text was updated successfully, but these errors were encountered:
Those Big Cyan Bars Are Caused By Size modifier
Sorry, something went wrong.
No branches or pull requests
Layout bug when in ConstraintLayout (compose)
Here is the screenshot:

Attached my compose layout code:
The text was updated successfully, but these errors were encountered: