Hello everyone. I'm working on a composable to expose from a lib, where the implementation is something like:
Copy code
fun Combined(modifier: Modifier) {
Row(...) {
BasicTextField(...)
…
}
}
Now, if the consumer passes
Modifier.focusRequester(requester)
in the outer
Combined
composable, I'd like to have the focus requests skip the
Row
and go to the
BasicTextField
. Is there a (simple?) way to do this?
m
myanmarking
12/13/2022, 9:43 AM
if the user uses that modifier, there’s nothing you can do. Why not pass the requester as a parameters, and use in whichever composable you see fit ?
g
gian
12/14/2022, 4:08 PM
Yeah that was the option I was using. In the end I realized I can use `BasicTextField`'s decoration box instead of wrapping the text field as I was doing. This way the final composable is exposed as if it were a text field.