Hi there, I found in the documentation that Modifier.requiredWidth() is used to modify the width of ...
n
Hi there, I found in the documentation that Modifier.requiredWidth() is used to modify the width of the Row, but I can use Modifier.width() to achieve the same effect, what is the difference between them?
m
Modifier.width
fits within it's parent, whereas
Modifier.requireWidth
renders the exact given size regardless the parent size https://developer.android.com/jetpack/compose/layout#built-in-modifiers
n
thank you !