Created
June 27, 2024 15:49
-
-
Save anitaa1990/61c0ce4b79c43deda34d675ac54c9893 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 MainAppContent( | |
modifier: Modifier = Modifier, | |
state: ContactUiState | |
) { | |
Box(modifier = modifier | |
.fillMaxSize() | |
) { | |
// the loader indicator | |
AnimatedVisibility(visible = state.loading) { | |
LinearProgressIndicator( | |
Modifier.fillMaxWidth() | |
) | |
} | |
// the contact list | |
ContactsList( | |
modifier = Modifier.fillMaxSize(), | |
contacts = state.contacts | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment