-
-
Save egorikftp/e3169318e9cb0b705b1b556b257ef6da 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 SheetCollapsed( | |
currentFraction: Float, | |
content: @Composable RowScope.() -> Unit | |
) { | |
Row( | |
modifier = Modifier | |
.fillMaxWidth() | |
.height(72.dp) | |
.background(MaterialTheme.colors.primary) | |
.graphicsLayer(alpha = 1f - currentFraction), | |
verticalAlignment = Alignment.CenterVertically | |
) { | |
content() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment