Created
February 25, 2024 08:59
-
-
Save ahmed3elshaer/cd230b4a96a1b66a34b975451367285f to your computer and use it in GitHub Desktop.
GeminiAnimatedGradient
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 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