I am not able to create and pass param of `size of...
# compose
v
I am not able to create and pass param of
size of custom width or height
in
Canvas
, while drawing Rect I am hacking it like taking whole canvas size using
size
which gives me Canvas size and then doing
size.copy(customWidth, customHeight)
prev there was Size() function but cant access it now? how can I make size of custom width or height?
s
I can access the
Size()
in
beta01
. The import is
import androidx.compose.ui.geometry.Size
v
I am able to access compose
Size
, but only
Class
, not function where I can pass width and height, but there is function
only class, dont konw why
see no fun
s
That's strange. Did you try compiling anyway?
v
no maybe I should try
s
Yeah
v
XD it works,
Compose/Android things
thanks
1
android dance 1