Last active
April 26, 2022 15:47
-
-
Save rygelouv/a45f824d542780722475bc9722e8ed89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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