Skip to content

Instantly share code, notes, and snippets.

@ahmed3elshaer
Created February 25, 2024 08:59
Show Gist options
  • Save ahmed3elshaer/cd230b4a96a1b66a34b975451367285f to your computer and use it in GitHub Desktop.
Save ahmed3elshaer/cd230b4a96a1b66a34b975451367285f to your computer and use it in GitHub Desktop.
GeminiAnimatedGradient
@Composable
fun AnimatedLoadingGradient(
) {
val geminiPrimaryColor = Color(0xFF2D2D32)
val geminiContainerColor = Color(0xFF235EC2)
Column(
modifier = Modifier
.fillMaxSize()
.padding(16.dp)
) {
Box(
modifier = Modifier
.height(20.dp)
.fillMaxWidth()
.animatedGradient(
primaryColor = geminiPrimaryColor,
containerColor = geminiContainerColor
)
)
Spacer(modifier = Modifier.height(16.dp))
Box(
modifier = Modifier
.height(20.dp)
.fillMaxWidth()
.animatedGradient(
primaryColor = geminiPrimaryColor,
containerColor = geminiContainerColor
)
)
Spacer(modifier = Modifier.height(16.dp))
Box(
modifier = Modifier
.height(20.dp)
.fillMaxWidth(fraction = 0.7f)
.animatedGradient(
primaryColor = geminiPrimaryColor,
containerColor = geminiContainerColor
)
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment