<div class='type'>Function</div>


<a id='references'></a>


<h2 id="calculatestartpadding-layoutdirection">calculateStartPadding</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun PaddingValues.calculateStartPadding(layoutDirection: LayoutDirection) =
    if (layoutDirection == LayoutDirection.Ltr) {
        calculateLeftPadding(layoutDirection)
    } else {
        calculateRightPadding(layoutDirection)
    }
```


The padding to be applied along the start edge inside a box: along the left edge if the layout
direction is LTR, or along the right edge for RTL.