Skip to content

Instantly share code, notes, and snippets.

@saqib-github-commits
Created May 1, 2023 18:31
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 saqib-github-commits/72c61ed793336b14348806aa8f4fca83 to your computer and use it in GitHub Desktop.
Save saqib-github-commits/72c61ed793336b14348806aa8f4fca83 to your computer and use it in GitHub Desktop.
@Composable
fun LoadingScreen(onTimeout: () -> Unit) {
Box(
modifier = Modifier.fillMaxSize(),
contentAlignment = Alignment.Center
) {
LaunchedEffect(Unit) {
delay(5000L)
onTimeout()
}
CircularProgressIndicator()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment