https://kotlinlang.org logo
#compose
Title
# compose
p

Paolo Achdjian

02/07/2020, 12:16 PM
I'm using PathBuilder in order to create a list of PathNode and then use DrawVector to draw it. My problem is that DrawVector need explicitly the size but I would like draw the path as large as the screen, something as LayoutWidth.Fill So, how can I may have this behaviour ?
z

Zach Klippenstein (he/him) [MOD]

02/07/2020, 3:39 PM
You could wrap your DrawVector in WithConstraints and use max width and max height from the constraints
p

Paolo Achdjian

02/07/2020, 8:07 PM
Thanks
12 Views