Does anyone have any ideas why the keyboard is fli...
# compose
e
Does anyone have any ideas why the keyboard is flickering when using an
ExpandedFullScreenSearchBar
?
Related code snippet:
Copy code
@Composable
fun MyComponent(
    <...>
) {
    val scope = rememberCoroutineScope()
    val inputField = @Composable {
        SearchBarDefaults.InputField(
            <...>
// Animation happening on the back button ->
            leadingIcon = {
                BackButton(
                onClick = {
                    scope.launch { searchBarState.animateToCollapsed() }
                },
            )
            }
        )
    }
    Box(modifier = modifier) {
        SearchBar(
            state = searchBarState,
            inputField = inputField,
            modifier = Modifier.fillMaxWidth(),
            colors = searchBarColors,
        )
        ExpandedFullScreenSearchBar(
            state = searchBarState,
            inputField = inputField,
            content = content,
            modifier = modifier,
            colors = searchBarColors,
        )
    }
}