Skip to content

Instantly share code, notes, and snippets.

@LethalMaus
Created January 15, 2026 22:07
Show Gist options
  • Select an option

  • Save LethalMaus/d8e75abe2b0181786b90040887db385c to your computer and use it in GitHub Desktop.

Select an option

Save LethalMaus/d8e75abe2b0181786b90040887db385c to your computer and use it in GitHub Desktop.
RequestControlIndicator.kt
if (isRequesting) {
Box(
modifier = Modifier
.fillMaxWidth()
.padding(vertical = 2.dp),
contentAlignment = Alignment.Center
) {
CircularProgressIndicator(strokeWidth = 2.dp)
}
} else {
Box(
modifier = Modifier.fillMaxWidth(),
contentAlignment = Alignment.Center
) {
Text("Request control", textAlign = TextAlign.Center)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment