Created
August 25, 2021 17:47
-
-
Save rubenquadros/a124f47d9ce7ad05d9651b589732ad9a to your computer and use it in GitHub Desktop.
Custom shape with rounded bottom
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
class BottomRoundedArcShape : Shape { | |
override fun createOutline( | |
size: Size, | |
layoutDirection: LayoutDirection, | |
density: Density | |
): Outline { | |
return Outline.Generic( | |
path = drawArcPath(size = size) | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment