Created
June 21, 2021 16:28
-
-
Save sergenes/83c5332c38f100b6df6f671b2d32e040 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
val shape = when (type) { | |
RowType.TOP -> { | |
RoundedCornerShape(normalRadius, normalRadius) | |
} | |
RowType.BOTTOM -> { | |
RoundedCornerShape( | |
noRadius, | |
noRadius, | |
normalRadius, | |
normalRadius) | |
} | |
RowType.SINGLE -> { | |
RoundedCornerShape( | |
normalRadius, | |
normalRadius, | |
normalRadius, | |
normalRadius) | |
} | |
else -> { | |
RoundedCornerShape(noRadius) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment