Thread
#compose
    Deepak Gahlot

    Deepak Gahlot

    1 year ago
    What happened to TextField in beta:01
    TextField(
        modifier = Modifier
            .fillMaxWidth()
            .padding(0.dp, 0.dp, 0.dp, 0.dp)
            .constrainAs(textField) {
                top.linkTo(<http://parent.top|parent.top>)
            },
        enabled = if (questions.editable != null) questions.editable else false,
        backgroundColor = if ((questions.editable != null) && (questions.editable)) colorResource(
            id = R.color.white
        ) else colorResource(id = R.color.gray5),
        value = text!!,
        textStyle = TextStyle(Color(R.color.black)),
        singleLine = true,
                   onValueChange = {
            text = it
            textCount = text!!.length
            MappingUtils.getAnswerForItemId(
                questions.itemId!!,
                text!!,
                aList = qResponse.answers,
                null,
                false
            )
        },
        inactiveColor = colorResource(id = R.color.gray9),
        activeColor = colorResource(id = R.color.blue1)
    )
    It says cannot find TextField
    Shabinder Singh

    Shabinder Singh

    1 year ago
    remove inactive color /active color , and replace it with textFieldColors()
    Deepak Gahlot

    Deepak Gahlot

    1 year ago
    shall i remove the backgroundcolor as well
    Shabinder Singh

    Shabinder Singh

    1 year ago
    Deepak Gahlot

    Deepak Gahlot

    1 year ago
    Also what is the replacement for
    onTextInputStarted = { keyboardController.value = it },
    i see in the new TextField it has been removed
    s

    Se7eN

    1 year ago