Last active
April 26, 2022 15:42
-
-
Save rygelouv/a220229f90d545d80e7d499402476154 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 | |
fun MoviesScreenContent( | |
uiState: TransferScreenState, | |
onSearchMovie: (String) -> Unit = { }, | |
onCategoryChange: (String) -> Unit = { }, | |
onFirstNameChange: (String) -> Unit = { }, | |
onLastNameChange: (String) -> Unit = { }, | |
onFavoriteChange: (String) -> Unit = { }, | |
onDownloadClicked: (MovieUI) -> Unit = { }, | |
onUploadClicked: () -> Unit = { }, | |
onRetryClicked: () -> Unit = { } | |
) { | |
... | |
} | |
... | |
@Composable | |
private fun SearchField( | |
inputState: InputState, | |
enabled: Boolean, | |
onSearchQuerryChanged: (String) -> Unit | |
) { | |
... | |
} | |
@Composable | |
private fun DownloadButton( | |
onDownload: () -> Unit, | |
movie: MovieUI? = null | |
) { | |
... | |
} | |
@Composable | |
private fun UploadButton( | |
onUpload: () -> Unit, | |
uploadStatus: UploadStatus? = null | |
) { | |
... | |
} | |
@Composable | |
private fun RetryButton( | |
onRetry: () -> Unit | |
) { | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment