java.lang.IllegalStateException: FocusRequester is not initialized. One reason for this is that you requesting focus changes during composition. Focus requesters should not be made during composition, but should be made in response to some event.
The onClick lambda is not @Composable, while LocalFocusManager.current is query Composition Local, which requires a compose context.BTW, this code should not compile…error message:
@Composable invocations can only happen from the context of a @Composable function