Skip to content

Instantly share code, notes, and snippets.

@rygelouv
Last active April 26, 2022 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rygelouv/a45f824d542780722475bc9722e8ed89 to your computer and use it in GitHub Desktop.
Save rygelouv/a45f824d542780722475bc9722e8ed89 to your computer and use it in GitHub Desktop.
@Composable
private fun SearchField(
actionChannel: ActionChannel
) {
...
Button(
/*Send a new action in the actionChannel */
onClick = { actionChannel.trySend(MoviesAction.SearchMovieAction(query) },
...
) {
Text(text = "Search")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment