Hi! Noticed that androidx.compose.material3.TextFi...
# compose-desktop
p
Hi! Noticed that androidx.compose.material3.TextField default parameter 'singleLine' value differ for different targets. For Desktop = false, for Android = true. Is there any reason for that?
1
i
https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]al3/TextField.kt;l=215?q=androidx.compose.material3.TextField It's false on Android and I don't see any changes in git history related to that. Why do you think it's differ?
p
I have composable function in common code with just TextField without specifying singleLine parameter. On desktop it behaves like multiline, in Android emulator like single line. If singleLine specify explicitly then the behaviour is the same.
i
Does it behaves the same in non-KMP android project?
In theory it should - CMP uses original Google binaries on Android, so that's why we ask to use Google issue tracker for Android issues even if it happens in CMP project
p
Sorry! There is no issue. Emulator doesn't propagate Enter key.
👍 1