Grigory Panko
09/20/2024, 7:58 AMTextField
(with TextFieldState
) inside material's BottomSheetDialogFragment
? I'm receiving weird behavior when popup constantly jumps while typing text inside TextField because of opened keyboard. Such behavior is not reproducible with old TextField (I'm using compose material TextField here for simplicity, but the same happens with plain BasicTextField without decorations). Code and video in threadGrigory Panko
09/20/2024, 7:59 AMGrigory Panko
09/20/2024, 8:01 AMclass MyPopupFragment : BottomSheetDialogFragment() {
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
) = ComposeView(inflater.context).apply {
setContent {
TextField(
state = remember { TextFieldState() },
lineLimits = TextFieldLineLimits.MultiLine(4, 4),
)
}
}
}
Emilien Champion
09/20/2024, 7:24 PMZach Klippenstein (he/him) [MOD]
09/20/2024, 7:41 PMEmilien Champion
09/20/2024, 8:02 PM