akshay2211 / DrawBox

DrawBox is a multi-purpose tool to draw anything on canvas, written completely on jetpack compose.
https://ak1.io/DrawBox/
Apache License 2.0
296 stars 40 forks source link

Modifier.fillMaxSize().weight(1f, true) is giving error #46

Open jzr-supove opened 1 year ago

jzr-supove commented 1 year ago

Describe the bug Usage example code in Readme.md is giving an error

To Reproduce See the screenshot.

Expected behavior No IDE errors

Screenshots image

TanotiCoder commented 1 year ago

To achieve the equivalent of weights in Jetpack Compose, you can utilize modifiers like weight and weightSum in combination with the Box component or other layout components like Row or Column.

yashgstwt commented 1 month ago

Screenshot (36) we have to give these 2 mandatory parameters to work