i got problem, i cant find `TextFieldDefaults.color` method colors = TextFieldDefaults.color( unfocusedPlaceholderColor = MaterialTheme.colorScheme.unfocusedTextFieldText, focusedPlaceholderColor = MaterialTheme.colorScheme.focusedTextFieldText, unfocusedContainerColor = MaterialTheme.colorScheme.textFieldContainer, focusedContainerColor = MaterialTheme.colorScheme.textFieldContainer, ) how to update this code?
@Landofcoding
11 ай бұрын
Did you import the project from my github repo?
@muhammadajisaputra9493
8 ай бұрын
I didn't clone your github. but I made the following video and I encountered the same problem on the colors part@@Landofcoding
@light_comes_with_patience
8 ай бұрын
Yeah I am facing this issue even though I cloned the github repo I am not sure where .colors is anyways. I looked up documentations and colors does not exist for TextFieldDefaults
@light_comes_with_patience
8 ай бұрын
There is another way to do it I think though. colors = TextFieldDefaults.textFieldColors( unfocusedLabelColor = MaterialTheme.colorScheme.unfocusedTextFieldText, focusedLabelColor = MaterialTheme.colorScheme.focusedTextFieldText, containerColor = MaterialTheme.colorScheme.textFieldContainer, ), This works as well it seems
@light_comes_with_patience
8 ай бұрын
I found out the issue. Basically you need to upgrade the jetpack bom dependency in your gradle.build to the latest one. Mine was 2022:10.00 so it was very old, you need to upgrade it to something like 2023 to get the .color
Пікірлер: 24