Is there a way to draw a `border()` but on a speci...
# compose
a
Is there a way to draw a
border()
but on a specific direction? say bottom or start? if not, i'd love to hear thoughts on how to implement such modifier
s
Probably use
drawWithContent
and make the path yourself
👍 1
a
nice idea. tried a bit with it and i have to figure this out with offsets, sizes, etc. seems doable
🌟 1
y
Border take a Shape. Shape can be a custom impl that returns Outline.Generic. which takes a path. You can even animate it nicely with PathMeasurer for progress
I haven't tried this, but APIs line up
a
some sort of an api that lets me specify the side of the border, or easier custom shapes for this use case would be fantastic
m
https://gist.github.com/ahmedhosnypro/46e45723941bcef49d13f1f4199856a5 and https://gist.github.com/gildor/ff7f56da7216ae9e4da77368a4beb87a feel like candidate implementations, though I might be missing something in the requirements