如何在jetapck compose OutlinedTextview中显示错误?

时间:2021-05-15 06:02:18

标签: android-jetpack-compose

在 OutlinedTextField 中,我想显示错误并使用以下代码:

   OutlinedTextField(
            value = email,
            isError = emailContainsError,
            label = { Text(emailErrorText) }
        )

但它给了我以下结果

enter image description here

我只有在获得焦点时才得到想要的结果:

enter image description here

如何在不聚焦的情况下显示错误?

0 个答案:

没有答案