Skip to content

Instantly share code, notes, and snippets.

@rubenquadros
Created August 25, 2021 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubenquadros/a124f47d9ce7ad05d9651b589732ad9a to your computer and use it in GitHub Desktop.
Save rubenquadros/a124f47d9ce7ad05d9651b589732ad9a to your computer and use it in GitHub Desktop.
Custom shape with rounded bottom
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