Mikołaj Kąkol

    Mikołaj Kąkol

    1 year ago
    hi, can I draw outside box bounds? something smiliar to xml’s
    clipToPadding=false
    ?
    using size instead of prefred size seams to work
    Timo Drick

    Timo Drick

    1 year ago
    There is a similar modifier clipToBounds() or clip(shape). Some composables do use it. So it depends. Box do not clipToBounds so it is possible to draw outside of the bounds.
    Colton Idle

    Colton Idle

    1 year ago
    Compose doesn't clip children by default IIRC
    Nader Jawad

    Nader Jawad

    1 year ago
    Yes compose does not clip any content by default so there is no need to explicitly disable clipping like the framework operates today. You should be able to draw outside the bounds and content should be rendered as expected