Label positioning issue in BasicTextField on focus jetpack compose

PressRex profile image
by PressRex
Label positioning issue in BasicTextField on focus jetpack compose

I'm encountering an issue with the label in BasicTextField in Jetpack Compose. When the text field gains focus (either by clicking or tapping), the label's height behaves strangely and does not transition or move correctly unless I start typing text into the field.

You can find the complete code implementation in my GitHub repository: BasicTextFieldExample - MainActivity.kt

The library versions I'm using are specified here: libs.versions.toml

Is this a bug with BasicTextField, or is there a workaround to fix the label's behavior so it transitions properly on focus, even when no text is entered?

Any insights or suggestions would be greatly appreciated!

You can watch the problem from here.

Source: View source

PressRex profile image
by PressRex

Subscribe to New Posts

Lorem ultrices malesuada sapien amet pulvinar quis. Feugiat etiam ullamcorper pharetra vitae nibh enim vel.

Success! Now Check Your Email

To complete Subscribe, click the confirmation link in your inbox. If it doesn’t arrive within 3 minutes, check your spam folder.

Ok, Thanks

Read More