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
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
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
Join our small android discord community discord.gg/snFzU9dZqz
Make sure to say Hi when you join 😁
very well explained, good job
Good job
Amazing!
sir in jmy textfield text not start from the start of
Bro design fascinated me. Did you also learn ui ux designing?
I got the design from Figma community
@@Landofcoding can u share the link? Please
Check the description
Hey! Thx for sharing Boss. I think the initial proyect repo is not complete :/
Thank you for notifying me, check it now i updated the link
@@Landofcoding thx for the quick reply 🫶
Nice design, but I cannot find the repo, kindly help
It's in the description
Make sure to switch to the design branch
git hub repo not complete.hard to identify the project
github.com/lofcoding/ComposeLoginScreen/tree/screen-design
Hi
Thanks for the video (●'◡'●)
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?
Did you import the project from my github repo?
I didn't clone your github. but I made the following video and I encountered the same problem on the colors part@@Landofcoding
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
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
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