Answers for "jetpack compose constraintlayout weight"

0

jetpack compose constraintlayout weight

width = Dimension.fillToConstraints

Text(
    text = "This would be some text",
    style = TextStyle(
        color = Color.Black,
        fontSize = 18.sp,
    ),
    modifier = Modifier.constrainAs(title) {
        top.linkTo(parent.top)
        bottom.linkTo(parent.bottom)
        start.linkTo(checkbox.end)
        end.linkTo(icon.start)
        width = Dimension.fillToConstraints
    },
)
Posted by: Guest on March-02-2022

Browse Popular Code Answers by Language