Nthily

    Nthily

    1 year ago
    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

    ms

    1 year ago
    Modifier.width
    fits within it's parent, whereas
    Modifier.requireWidth
    renders the exact given size regardless the parent sizehttps://developer.android.com/jetpack/compose/layout#built-in-modifiers
    Nthily

    Nthily

    1 year ago
    thank you !