-
-
Save saqib-github-commits/72c61ed793336b14348806aa8f4fca83 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 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