[go: nahoru, domu]

Add LD to WithConstraints

Bug: 147608318
Test: material/framework/layout tests passed + new test + ./gradlew
buildOnServer
Relnote: "WithConstraints got LayoutDirection parameter"

Change-Id: I6d6f7d5fd9a4a0428e3ee188a9a3790e1cdaf083
diff --git a/compose/compose-runtime/compose-runtime-benchmark/src/androidTest/java/androidx/compose/HotReloadIntegrationTests.kt b/compose/compose-runtime/compose-runtime-benchmark/src/androidTest/java/androidx/compose/HotReloadIntegrationTests.kt
index 8951071..d269011 100644
--- a/compose/compose-runtime/compose-runtime-benchmark/src/androidTest/java/androidx/compose/HotReloadIntegrationTests.kt
+++ b/compose/compose-runtime/compose-runtime-benchmark/src/androidTest/java/androidx/compose/HotReloadIntegrationTests.kt
@@ -55,7 +55,7 @@
         activity.uiThread {
             activity.setContent {
                 Column {
-                    WithConstraints {
+                    WithConstraints { _, _ ->
                         val state = state { DrawerState.Closed }
                         ModalDrawerLayout(
                             drawerState = state.value,
diff --git a/compose/compose-runtime/compose-runtime-benchmark/src/androidTest/java/androidx/compose/benchmark/realworld4/RealWorld4_Widgets.kt b/compose/compose-runtime/compose-runtime-benchmark/src/androidTest/java/androidx/compose/benchmark/realworld4/RealWorld4_Widgets.kt
index e96f266..1aca5d6 100644
--- a/compose/compose-runtime/compose-runtime-benchmark/src/androidTest/java/androidx/compose/benchmark/realworld4/RealWorld4_Widgets.kt
+++ b/compose/compose-runtime/compose-runtime-benchmark/src/androidTest/java/androidx/compose/benchmark/realworld4/RealWorld4_Widgets.kt
@@ -50,7 +50,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints { constraints ->
+    WithConstraints { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -120,7 +120,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -168,7 +168,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -265,7 +265,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -368,7 +368,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -456,7 +456,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -567,7 +567,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -633,7 +633,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -712,7 +712,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -759,7 +759,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -814,7 +814,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -852,7 +852,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -889,7 +889,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -952,7 +952,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -991,7 +991,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1036,7 +1036,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1095,7 +1095,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1165,7 +1165,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1219,7 +1219,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1276,7 +1276,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1327,7 +1327,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1360,7 +1360,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1412,7 +1412,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1495,7 +1495,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1548,7 +1548,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1595,7 +1595,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1656,7 +1656,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1695,7 +1695,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1745,7 +1745,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1788,7 +1788,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1835,7 +1835,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1883,7 +1883,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1924,7 +1924,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -1963,7 +1963,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2018,7 +2018,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2063,7 +2063,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2102,7 +2102,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2154,7 +2154,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2254,7 +2254,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2305,7 +2305,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2364,7 +2364,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2411,7 +2411,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2483,7 +2483,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2541,7 +2541,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2607,7 +2607,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2693,7 +2693,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2740,7 +2740,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2781,7 +2781,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2820,7 +2820,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2859,7 +2859,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2920,7 +2920,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2959,7 +2959,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -2998,7 +2998,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3036,7 +3036,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3066,7 +3066,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3141,7 +3141,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3200,7 +3200,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3261,7 +3261,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3294,7 +3294,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3351,7 +3351,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3389,7 +3389,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3425,7 +3425,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3462,7 +3462,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3523,7 +3523,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3562,7 +3562,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3606,7 +3606,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3649,7 +3649,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3700,7 +3700,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3750,7 +3750,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3815,7 +3815,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3879,7 +3879,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -3950,7 +3950,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4019,7 +4019,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4066,7 +4066,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4112,7 +4112,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4151,7 +4151,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4202,7 +4202,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4309,7 +4309,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4361,7 +4361,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4418,7 +4418,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4458,7 +4458,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4538,7 +4538,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4609,7 +4609,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4668,7 +4668,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4711,7 +4711,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4744,7 +4744,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4802,7 +4802,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4858,7 +4858,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4895,7 +4895,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4942,7 +4942,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -4986,7 +4986,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5023,7 +5023,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5063,7 +5063,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5121,7 +5121,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5194,7 +5194,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5247,7 +5247,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5292,7 +5292,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5353,7 +5353,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5419,7 +5419,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5472,7 +5472,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5517,7 +5517,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5582,7 +5582,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5645,7 +5645,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5683,7 +5683,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5726,7 +5726,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5765,7 +5765,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5825,7 +5825,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5870,7 +5870,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5909,7 +5909,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5942,7 +5942,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -5993,7 +5993,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6036,7 +6036,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6069,7 +6069,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6128,7 +6128,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6199,7 +6199,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6250,7 +6250,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6289,7 +6289,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6336,7 +6336,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6375,7 +6375,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6414,7 +6414,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6461,7 +6461,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6506,7 +6506,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6561,7 +6561,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6606,7 +6606,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6651,7 +6651,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6698,7 +6698,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6737,7 +6737,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6770,7 +6770,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6815,7 +6815,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6854,7 +6854,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6887,7 +6887,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -6934,7 +6934,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7010,7 +7010,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7145,7 +7145,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7207,7 +7207,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7270,7 +7270,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7317,7 +7317,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7384,7 +7384,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7417,7 +7417,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7451,7 +7451,7 @@
         emptyList<Collection<KCallable<*>>>()
     }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7512,7 +7512,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7589,7 +7589,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7652,7 +7652,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7744,7 +7744,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7841,7 +7841,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7906,7 +7906,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -7989,7 +7989,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -8072,7 +8072,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp5 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2 + tmp3 + tmp4
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp5.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -8110,7 +8110,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
@@ -8177,7 +8177,7 @@
                 emptyList<Collection<KCallable<*>>>()
             }.map { it.toString().reversed() }.joinToString("-"))
     val tmp3 = "lkjzndgke84ts" + tmp0 + tmp1 + tmp2
-    WithConstraints(modifier) { constraints ->
+    WithConstraints(modifier) { constraints, _ ->
         Box(LayoutPadding(1.dp) + DrawBackground(color = tmp3.toColor())) {
             if (constraints.maxHeight > constraints.maxWidth) {
                 Column {
diff --git a/ui/integration-tests/benchmark/src/androidTest/java/androidx/ui/core/WithConstraintsBenchmark.kt b/ui/integration-tests/benchmark/src/androidTest/java/androidx/ui/core/WithConstraintsBenchmark.kt
index 6aab3fd..1cfb79f 100644
--- a/ui/integration-tests/benchmark/src/androidTest/java/androidx/ui/core/WithConstraintsBenchmark.kt
+++ b/ui/integration-tests/benchmark/src/androidTest/java/androidx/ui/core/WithConstraintsBenchmark.kt
@@ -88,7 +88,7 @@
     override fun emitContent() {
         val size = state { 200.dp }
         this.state = size
-        WithConstraints {
+        WithConstraints { _, _ ->
             Container(width = 300.dp, height = 300.dp) {
                 Spacer(LayoutSize(width = size.value, height = size.value))
             }
@@ -109,7 +109,7 @@
         val size = state { 100.ipx }
         this.state = size
         ChangingConstraintsLayout(state) {
-            WithConstraints {
+            WithConstraints { _, _ ->
                 Container(expanded = true) {}
             }
         }
diff --git a/ui/ui-framework/api/0.1.0-dev07.txt b/ui/ui-framework/api/0.1.0-dev07.txt
index e2ec317..fcb346d 100644
--- a/ui/ui-framework/api/0.1.0-dev07.txt
+++ b/ui/ui-framework/api/0.1.0-dev07.txt
@@ -29,7 +29,7 @@
     method public static androidx.ui.core.LayoutNode.MeasureBlocks MeasuringIntrinsicsMeasureBlocks(kotlin.jvm.functions.Function4<? super androidx.ui.core.MeasureScope,? super java.util.List<? extends androidx.ui.core.Measurable>,? super androidx.ui.core.Constraints,? super androidx.ui.core.LayoutDirection,? extends androidx.ui.core.MeasureScope.LayoutResult> measureBlock);
     method public static inline void OnChildPositioned(kotlin.jvm.functions.Function1<? super androidx.ui.core.LayoutCoordinates,kotlin.Unit> onPositioned, kotlin.jvm.functions.Function0<kotlin.Unit> children);
     method public static inline void OnPositioned(kotlin.jvm.functions.Function1<? super androidx.ui.core.LayoutCoordinates,kotlin.Unit> onPositioned);
-    method public static void WithConstraints(androidx.ui.core.Modifier modifier = Modifier.None, kotlin.jvm.functions.Function1<? super androidx.ui.core.Constraints,kotlin.Unit> children);
+    method public static void WithConstraints(androidx.ui.core.Modifier modifier = Modifier.None, kotlin.jvm.functions.Function2<? super androidx.ui.core.Constraints,? super androidx.ui.core.LayoutDirection,kotlin.Unit> children);
   }
 
   public final class LayoutTag implements androidx.ui.core.LayoutTagParentData androidx.ui.core.ParentDataModifier {
diff --git a/ui/ui-framework/api/current.txt b/ui/ui-framework/api/current.txt
index e2ec317..fcb346d 100644
--- a/ui/ui-framework/api/current.txt
+++ b/ui/ui-framework/api/current.txt
@@ -29,7 +29,7 @@
     method public static androidx.ui.core.LayoutNode.MeasureBlocks MeasuringIntrinsicsMeasureBlocks(kotlin.jvm.functions.Function4<? super androidx.ui.core.MeasureScope,? super java.util.List<? extends androidx.ui.core.Measurable>,? super androidx.ui.core.Constraints,? super androidx.ui.core.LayoutDirection,? extends androidx.ui.core.MeasureScope.LayoutResult> measureBlock);
     method public static inline void OnChildPositioned(kotlin.jvm.functions.Function1<? super androidx.ui.core.LayoutCoordinates,kotlin.Unit> onPositioned, kotlin.jvm.functions.Function0<kotlin.Unit> children);
     method public static inline void OnPositioned(kotlin.jvm.functions.Function1<? super androidx.ui.core.LayoutCoordinates,kotlin.Unit> onPositioned);
-    method public static void WithConstraints(androidx.ui.core.Modifier modifier = Modifier.None, kotlin.jvm.functions.Function1<? super androidx.ui.core.Constraints,kotlin.Unit> children);
+    method public static void WithConstraints(androidx.ui.core.Modifier modifier = Modifier.None, kotlin.jvm.functions.Function2<? super androidx.ui.core.Constraints,? super androidx.ui.core.LayoutDirection,kotlin.Unit> children);
   }
 
   public final class LayoutTag implements androidx.ui.core.LayoutTagParentData androidx.ui.core.ParentDataModifier {
diff --git a/ui/ui-framework/api/public_plus_experimental_0.1.0-dev07.txt b/ui/ui-framework/api/public_plus_experimental_0.1.0-dev07.txt
index e2ec317..fcb346d 100644
--- a/ui/ui-framework/api/public_plus_experimental_0.1.0-dev07.txt
+++ b/ui/ui-framework/api/public_plus_experimental_0.1.0-dev07.txt
@@ -29,7 +29,7 @@
     method public static androidx.ui.core.LayoutNode.MeasureBlocks MeasuringIntrinsicsMeasureBlocks(kotlin.jvm.functions.Function4<? super androidx.ui.core.MeasureScope,? super java.util.List<? extends androidx.ui.core.Measurable>,? super androidx.ui.core.Constraints,? super androidx.ui.core.LayoutDirection,? extends androidx.ui.core.MeasureScope.LayoutResult> measureBlock);
     method public static inline void OnChildPositioned(kotlin.jvm.functions.Function1<? super androidx.ui.core.LayoutCoordinates,kotlin.Unit> onPositioned, kotlin.jvm.functions.Function0<kotlin.Unit> children);
     method public static inline void OnPositioned(kotlin.jvm.functions.Function1<? super androidx.ui.core.LayoutCoordinates,kotlin.Unit> onPositioned);
-    method public static void WithConstraints(androidx.ui.core.Modifier modifier = Modifier.None, kotlin.jvm.functions.Function1<? super androidx.ui.core.Constraints,kotlin.Unit> children);
+    method public static void WithConstraints(androidx.ui.core.Modifier modifier = Modifier.None, kotlin.jvm.functions.Function2<? super androidx.ui.core.Constraints,? super androidx.ui.core.LayoutDirection,kotlin.Unit> children);
   }
 
   public final class LayoutTag implements androidx.ui.core.LayoutTagParentData androidx.ui.core.ParentDataModifier {
diff --git a/ui/ui-framework/api/public_plus_experimental_current.txt b/ui/ui-framework/api/public_plus_experimental_current.txt
index e2ec317..fcb346d 100644
--- a/ui/ui-framework/api/public_plus_experimental_current.txt
+++ b/ui/ui-framework/api/public_plus_experimental_current.txt
@@ -29,7 +29,7 @@
     method public static androidx.ui.core.LayoutNode.MeasureBlocks MeasuringIntrinsicsMeasureBlocks(kotlin.jvm.functions.Function4<? super androidx.ui.core.MeasureScope,? super java.util.List<? extends androidx.ui.core.Measurable>,? super androidx.ui.core.Constraints,? super androidx.ui.core.LayoutDirection,? extends androidx.ui.core.MeasureScope.LayoutResult> measureBlock);
     method public static inline void OnChildPositioned(kotlin.jvm.functions.Function1<? super androidx.ui.core.LayoutCoordinates,kotlin.Unit> onPositioned, kotlin.jvm.functions.Function0<kotlin.Unit> children);
     method public static inline void OnPositioned(kotlin.jvm.functions.Function1<? super androidx.ui.core.LayoutCoordinates,kotlin.Unit> onPositioned);
-    method public static void WithConstraints(androidx.ui.core.Modifier modifier = Modifier.None, kotlin.jvm.functions.Function1<? super androidx.ui.core.Constraints,kotlin.Unit> children);
+    method public static void WithConstraints(androidx.ui.core.Modifier modifier = Modifier.None, kotlin.jvm.functions.Function2<? super androidx.ui.core.Constraints,? super androidx.ui.core.LayoutDirection,kotlin.Unit> children);
   }
 
   public final class LayoutTag implements androidx.ui.core.LayoutTagParentData androidx.ui.core.ParentDataModifier {
diff --git a/ui/ui-framework/api/restricted_0.1.0-dev07.txt b/ui/ui-framework/api/restricted_0.1.0-dev07.txt
index e2ec317..fcb346d 100644
--- a/ui/ui-framework/api/restricted_0.1.0-dev07.txt
+++ b/ui/ui-framework/api/restricted_0.1.0-dev07.txt
@@ -29,7 +29,7 @@
     method public static androidx.ui.core.LayoutNode.MeasureBlocks MeasuringIntrinsicsMeasureBlocks(kotlin.jvm.functions.Function4<? super androidx.ui.core.MeasureScope,? super java.util.List<? extends androidx.ui.core.Measurable>,? super androidx.ui.core.Constraints,? super androidx.ui.core.LayoutDirection,? extends androidx.ui.core.MeasureScope.LayoutResult> measureBlock);
     method public static inline void OnChildPositioned(kotlin.jvm.functions.Function1<? super androidx.ui.core.LayoutCoordinates,kotlin.Unit> onPositioned, kotlin.jvm.functions.Function0<kotlin.Unit> children);
     method public static inline void OnPositioned(kotlin.jvm.functions.Function1<? super androidx.ui.core.LayoutCoordinates,kotlin.Unit> onPositioned);
-    method public static void WithConstraints(androidx.ui.core.Modifier modifier = Modifier.None, kotlin.jvm.functions.Function1<? super androidx.ui.core.Constraints,kotlin.Unit> children);
+    method public static void WithConstraints(androidx.ui.core.Modifier modifier = Modifier.None, kotlin.jvm.functions.Function2<? super androidx.ui.core.Constraints,? super androidx.ui.core.LayoutDirection,kotlin.Unit> children);
   }
 
   public final class LayoutTag implements androidx.ui.core.LayoutTagParentData androidx.ui.core.ParentDataModifier {
diff --git a/ui/ui-framework/api/restricted_current.txt b/ui/ui-framework/api/restricted_current.txt
index e2ec317..fcb346d 100644
--- a/ui/ui-framework/api/restricted_current.txt
+++ b/ui/ui-framework/api/restricted_current.txt
@@ -29,7 +29,7 @@
     method public static androidx.ui.core.LayoutNode.MeasureBlocks MeasuringIntrinsicsMeasureBlocks(kotlin.jvm.functions.Function4<? super androidx.ui.core.MeasureScope,? super java.util.List<? extends androidx.ui.core.Measurable>,? super androidx.ui.core.Constraints,? super androidx.ui.core.LayoutDirection,? extends androidx.ui.core.MeasureScope.LayoutResult> measureBlock);
     method public static inline void OnChildPositioned(kotlin.jvm.functions.Function1<? super androidx.ui.core.LayoutCoordinates,kotlin.Unit> onPositioned, kotlin.jvm.functions.Function0<kotlin.Unit> children);
     method public static inline void OnPositioned(kotlin.jvm.functions.Function1<? super androidx.ui.core.LayoutCoordinates,kotlin.Unit> onPositioned);
-    method public static void WithConstraints(androidx.ui.core.Modifier modifier = Modifier.None, kotlin.jvm.functions.Function1<? super androidx.ui.core.Constraints,kotlin.Unit> children);
+    method public static void WithConstraints(androidx.ui.core.Modifier modifier = Modifier.None, kotlin.jvm.functions.Function2<? super androidx.ui.core.Constraints,? super androidx.ui.core.LayoutDirection,kotlin.Unit> children);
   }
 
   public final class LayoutTag implements androidx.ui.core.LayoutTagParentData androidx.ui.core.ParentDataModifier {
diff --git a/ui/ui-framework/integration-tests/samples/src/main/java/androidx/ui/framework/samples/WithConstraintsSample.kt b/ui/ui-framework/integration-tests/samples/src/main/java/androidx/ui/framework/samples/WithConstraintsSample.kt
index dcb4056..dae7fb2 100644
--- a/ui/ui-framework/integration-tests/samples/src/main/java/androidx/ui/framework/samples/WithConstraintsSample.kt
+++ b/ui/ui-framework/integration-tests/samples/src/main/java/androidx/ui/framework/samples/WithConstraintsSample.kt
@@ -28,7 +28,7 @@
 @Sampled
 @Composable
 fun WithConstraintsSample() {
-    WithConstraints { constraints ->
+    WithConstraints { constraints, _ ->
         val rectangleHeight = 100.dp
         val threshold = with(DensityAmbient.current) { (rectangleHeight * 2).toIntPx() }
         if (constraints.maxHeight < threshold) {
diff --git a/ui/ui-framework/src/androidTest/java/androidx/ui/core/test/WithConstraintsTest.kt b/ui/ui-framework/src/androidTest/java/androidx/ui/core/test/WithConstraintsTest.kt
index 369f534..e8152fa 100644
--- a/ui/ui-framework/src/androidTest/java/androidx/ui/core/test/WithConstraintsTest.kt
+++ b/ui/ui-framework/src/androidTest/java/androidx/ui/core/test/WithConstraintsTest.kt
@@ -27,10 +27,13 @@
 import androidx.test.rule.ActivityTestRule
 import androidx.ui.core.Constraints
 import androidx.ui.core.Layout
+import androidx.ui.core.LayoutDirection
+import androidx.ui.core.LayoutModifier
 import androidx.ui.core.MeasureBlock
 import androidx.ui.core.Modifier
 import androidx.ui.core.OnPositioned
 import androidx.ui.core.Ref
+import androidx.ui.core.TextFieldDelegate.Companion.layout
 import androidx.ui.core.WithConstraints
 import androidx.ui.core.draw
 import androidx.ui.core.setContent
@@ -38,8 +41,10 @@
 import androidx.ui.graphics.Color
 import androidx.ui.graphics.Paint
 import androidx.ui.graphics.vector.DrawVector
+import androidx.ui.unit.Density
 import androidx.ui.unit.IntPx
 import androidx.ui.unit.IntPxSize
+import androidx.ui.unit.PxPosition
 import androidx.ui.unit.ipx
 import androidx.ui.unit.px
 import androidx.ui.unit.toRect
@@ -85,13 +90,13 @@
         val secondChildConstraints = Ref<Constraints>()
         rule.runOnUiThreadIR {
             activity.setContentInFrameLayout {
-                WithConstraints { constraints ->
+                WithConstraints { constraints, _ ->
                     topConstraints.value = constraints
                     Padding(size = size) {
                         val drawModifier = draw { _, _ ->
                             countDownLatch.countDown()
                         }
-                        WithConstraints(drawModifier) { constraints ->
+                        WithConstraints(drawModifier) { constraints, _ ->
                             paddedConstraints.value = constraints
                             Layout(measureBlock = { _, childConstraints, _ ->
                                 firstChildConstraints.value = childConstraints
@@ -129,7 +134,7 @@
 
         rule.runOnUiThreadIR {
             activity.setContentInFrameLayout {
-                WithConstraints { constraints ->
+                WithConstraints { constraints, _ ->
                     val outerModifier = draw { canvas, size ->
                         val paint = Paint()
                         paint.color = model.outerColor
@@ -214,7 +219,7 @@
 
         rule.runOnUiThreadIR {
             activity.setContent {
-                WithConstraints {
+                WithConstraints { _, _ ->
                     // this block is called as a subcomposition from LayoutNode.measure()
                     // DrawVector introduces additional subcomposition which is closing the
                     // current frame and opens a new one. our model reads during measure()
@@ -246,7 +251,7 @@
 
         rule.runOnUiThreadIR {
             activity.setContentInFrameLayout {
-                WithConstraints {
+                WithConstraints { _, _ ->
                     recompositionsCount1++
                     Container(100.ipx, 100.ipx) {
                         model.value // model read
@@ -274,7 +279,7 @@
         rule.runOnUiThreadIR {
             activity.setContentInFrameLayout {
                 ChangingConstraintsLayout(model) {
-                    WithConstraints { constraints ->
+                    WithConstraints { constraints, _ ->
                         actualConstraints = constraints
                         assertEquals(1, latch.count)
                         latch.countDown()
@@ -304,7 +309,7 @@
         rule.runOnUiThreadIR {
             activity.setContentInFrameLayout {
                 Container(width = 200.ipx, height = 200.ipx) {
-                    WithConstraints {
+                    WithConstraints { _, _ ->
                         OnPositioned {
                             // OnPositioned can be fired multiple times with the same value
                             // for example when requestLayout() was triggered on ComposeView.
@@ -355,7 +360,7 @@
             activity.setContentInFrameLayout {
                 Container(100.ipx, 100.ipx, backgroundModifier(Color.Red)) {
                     ChangingConstraintsLayout(model) {
-                        WithConstraints { constraints ->
+                        WithConstraints { constraints, _ ->
                             Container(100.ipx, 100.ipx) {
                                 Container(100.ipx, 100.ipx) {
                                     Layout(
@@ -394,7 +399,7 @@
         rule.runOnUiThread {
             activity.setContentInFrameLayout {
                 Container(width = 100.ipx, height = 100.ipx) {
-                    WithConstraints {
+                    WithConstraints { _, _ ->
                         // this replicates the popular pattern we currently use
                         // where we save some data calculated in the measuring block
                         // and then use it in the next composition frame
@@ -431,7 +436,7 @@
                     // this component changes the constraints which triggers subcomposition
                     // within onMeasure block
                     ChangingConstraintsLayout(model) {
-                        WithConstraints { constraints ->
+                        WithConstraints { constraints, _ ->
                             if (constraints.maxWidth == 100.ipx) {
                                 // we will stop emmitting this layouts after constraints change
                                 // Additional Container is needed so the Layout will be
@@ -492,7 +497,7 @@
                     }
                     layout(100.ipx, 100.ipx) {}
                 }
-                WithConstraints {}
+                WithConstraints { _, _ -> }
             }
         }
         assertTrue(drawlatch.await(1, TimeUnit.SECONDS))
@@ -511,7 +516,7 @@
                 assertEquals(1, outerComposeLatch.count)
                 outerComposeLatch.countDown()
                 Layout(children = {
-                    WithConstraints {
+                    WithConstraints { _, _ ->
                         assertEquals(1, innerComposeLatch.count)
                         innerComposeLatch.countDown()
                         Layout(children = emptyContent()) { _, _, _ ->
@@ -548,7 +553,7 @@
             activity.setContent {
                 val state = state { 0 }
                 ContainerChildrenAffectsParentSize(100.ipx, 100.ipx) {
-                    WithConstraints {
+                    WithConstraints { _, _ ->
                         Layout(
                             children = {},
                             modifier = countdownLatchBackgroundModifier(Color.Transparent)
@@ -561,7 +566,7 @@
                         }
                     }
                     Container(100.ipx, 100.ipx) {
-                        WithConstraints {}
+                        WithConstraints { _, _ -> }
                     }
                 }
             }
@@ -572,6 +577,63 @@
         // so nothing else to assert, apart from not crashing
     }
 
+    @Test
+    fun withConstraints_getsCorrectLayoutDirection() {
+        var latch = CountDownLatch(1)
+        var resultLayoutDirection: LayoutDirection? = null
+        rule.runOnUiThreadIR {
+            activity.setContent {
+                Layout(
+                    children = @Composable {
+                        WithConstraints { _, layoutDirection ->
+                            resultLayoutDirection = layoutDirection
+                        }
+                    },
+                    modifier = layoutDirectionModifier(LayoutDirection.Rtl)
+                ) { m, c, _ ->
+                    val p = m.first().measure(c)
+                    layout(0.ipx, 0.ipx) {
+                        p.place(PxPosition.Origin)
+                        latch.countDown()
+                    }
+                }
+            }
+        }
+
+        assertTrue(latch.await(1, TimeUnit.SECONDS))
+        assertEquals(LayoutDirection.Rtl, resultLayoutDirection)
+    }
+
+    @Test
+    fun withConstraints_layoutDirectionSetByModifier() {
+        var latch = CountDownLatch(1)
+        var resultLayoutDirection: LayoutDirection? = null
+        rule.runOnUiThreadIR {
+            activity.setContent {
+                Layout(
+                    children = @Composable {
+                        WithConstraints(
+                            modifier = layoutDirectionModifier(LayoutDirection.Rtl)
+                        ) { _, layoutDirection ->
+                            resultLayoutDirection = layoutDirection
+                            latch.countDown()
+                        }
+                    },
+                    modifier = layoutDirectionModifier(LayoutDirection.Ltr)
+                ) { m, c, _ ->
+                    val p = m.first().measure(c)
+                    layout(0.ipx, 0.ipx) {
+                        p.place(PxPosition.Origin)
+                        latch.countDown()
+                    }
+                }
+            }
+        }
+
+        assertTrue(latch.await(1, TimeUnit.SECONDS))
+        assertEquals(LayoutDirection.Rtl, resultLayoutDirection)
+    }
+
     private fun takeScreenShot(size: Int): Bitmap {
         assertTrue(drawLatch.await(1, TimeUnit.SECONDS))
         val bitmap = rule.waitAndScreenShot()
@@ -587,12 +649,16 @@
         canvas.drawRect(size.toRect(), paint)
         drawLatch.countDown()
     }
+
+    private fun layoutDirectionModifier(ld: LayoutDirection) = object : LayoutModifier {
+        override fun Density.modifyLayoutDirection(layoutDirection: LayoutDirection) = ld
+    }
 }
 
 @Composable
 private fun TestLayout(@Suppress("UNUSED_PARAMETER") someInput: Int) {
     Layout(children = {
-        WithConstraints {
+        WithConstraints { _, _ ->
             NeedsOtherMeasurementComposable(10.ipx)
         }
     }) { measurables, constraints, _ ->
diff --git a/ui/ui-framework/src/main/java/androidx/ui/core/Layout.kt b/ui/ui-framework/src/main/java/androidx/ui/core/Layout.kt
index 12ed02b..13c0ecf 100644
--- a/ui/ui-framework/src/main/java/androidx/ui/core/Layout.kt
+++ b/ui/ui-framework/src/main/java/androidx/ui/core/Layout.kt
@@ -459,7 +459,7 @@
 @Composable
 fun WithConstraints(
     modifier: Modifier = Modifier.None,
-    children: @Composable() (Constraints) -> Unit
+    children: @Composable() (Constraints, LayoutDirection) -> Unit
 ) {
     val state = remember { WithConstrainsState() }
     state.children = children
@@ -486,7 +486,7 @@
     var context: Context? = null
     val nodeRef = Ref<LayoutNode>()
     var lastConstraints: Constraints? = null
-    var children: @Composable() (Constraints) -> Unit = {}
+    var children: @Composable() (Constraints, LayoutDirection) -> Unit = { _, _ -> }
     var forceRecompose = false
     val measureBlocks = object : LayoutNode.NoIntrinsicsMeasureBlocks(
         error = "Intrinsic measurements are not supported by WithConstraints"
@@ -531,7 +531,7 @@
         val constraints = lastConstraints!!
         // TODO(b/150390669): Review use of @Untracked
         Compose.subcomposeInto(node, context!!, compositionRef) @Untracked {
-            children(constraints)
+            children(constraints, node.layoutDirection!!)
         }
         forceRecompose = false
     }
diff --git a/ui/ui-layout/integration-tests/layout-demos/src/main/java/androidx/ui/layout/demos/RtlDemos.kt b/ui/ui-layout/integration-tests/layout-demos/src/main/java/androidx/ui/layout/demos/RtlDemos.kt
index 1cd5c9d..c0ec5f8 100644
--- a/ui/ui-layout/integration-tests/layout-demos/src/main/java/androidx/ui/layout/demos/RtlDemos.kt
+++ b/ui/ui-layout/integration-tests/layout-demos/src/main/java/androidx/ui/layout/demos/RtlDemos.kt
@@ -19,8 +19,12 @@
 import android.app.Activity
 import android.os.Bundle
 import androidx.compose.Composable
+import androidx.ui.core.DensityAmbient
 import androidx.ui.core.Layout
+import androidx.ui.core.LayoutDirection
+import androidx.ui.core.Modifier
 import androidx.ui.core.Text
+import androidx.ui.core.WithConstraints
 import androidx.ui.core.setContent
 import androidx.ui.graphics.Color
 import androidx.ui.layout.Column
@@ -45,7 +49,7 @@
                 testText()
                 Text("ROW", LayoutGravity.Center)
                 testRow()
-                Text("ROW WITH MODIFIER", LayoutGravity.Center)
+                Text("ROW WITH LTR MODIFIER", LayoutGravity.Center)
                 testRow_modifier()
                 Text("RELATIVE TO SIBLINGS", LayoutGravity.Center)
                 testSiblings()
@@ -53,6 +57,10 @@
                 CustomLayout(true)
                 Text("PLACE WITHOUT RTL SUPPORT IN CUSTOM LAYOUT", LayoutGravity.Center)
                 CustomLayout(false)
+                Text("WITH CONSTRAINTS", LayoutGravity.Center)
+                LayoutWithConstraints(LayoutDirectionModifier.Ltr, "LD: LTR modifier")
+                LayoutWithConstraints(LayoutDirectionModifier.Rtl, "LD: RTL modifier")
+                LayoutWithConstraints(text = "LD: locale")
             }
         }
     }
@@ -149,4 +157,18 @@
             }
         }
     }
+}
+
+@Composable
+fun LayoutWithConstraints(modifier: Modifier = Modifier.None, text: String) {
+    WithConstraints(modifier) { constraints, direction ->
+        with(DensityAmbient.current) {
+            val w = (constraints.maxWidth / 3).toDp()
+            val h = (constraints.maxHeight / 2).toDp()
+            val color = if (direction == LayoutDirection.Ltr) Color.Red else Color.Magenta
+            Stack(LayoutSize(w, h) + DrawBackground(color)) {
+                Text(text, LayoutGravity.Center)
+            }
+        }
+    }
 }
\ No newline at end of file
diff --git a/ui/ui-layout/src/androidTest/java/androidx/ui/layout/test/AlignmentLineTest.kt b/ui/ui-layout/src/androidTest/java/androidx/ui/layout/test/AlignmentLineTest.kt
index 75cad62..3b2f4c6 100644
--- a/ui/ui-layout/src/androidTest/java/androidx/ui/layout/test/AlignmentLineTest.kt
+++ b/ui/ui-layout/src/androidTest/java/androidx/ui/layout/test/AlignmentLineTest.kt
@@ -276,7 +276,7 @@
             Wrap {
                 ConstrainedBox(DpConstraints(minHeight = minHeight)) {
                     AlignmentLineOffset(testLine) {
-                        WithConstraints { constraints ->
+                        WithConstraints { constraints, _ ->
                             Assert.assertEquals(minHeight.toIntPx(), constraints.minHeight)
                             latch.countDown()
                         }
@@ -296,7 +296,7 @@
             Wrap {
                 ConstrainedBox(DpConstraints(minWidth = minWidth)) {
                     AlignmentLineOffset(testLine) {
-                        WithConstraints { constraints ->
+                        WithConstraints { constraints, _ ->
                             Assert.assertEquals(minWidth.toIntPx(), constraints.minWidth)
                             latch.countDown()
                         }
@@ -316,7 +316,7 @@
             Wrap {
                 ConstrainedBox(DpConstraints(minHeight = minHeight)) {
                     CenterAlignmentLine(testLine) {
-                        WithConstraints { constraints ->
+                        WithConstraints { constraints, _ ->
                             Assert.assertEquals(minHeight.toIntPx(), constraints.minHeight)
                             latch.countDown()
                         }
@@ -336,7 +336,7 @@
             Wrap {
                 ConstrainedBox(DpConstraints(minWidth = minWidth)) {
                     CenterAlignmentLine(testLine) {
-                        WithConstraints { constraints ->
+                        WithConstraints { constraints, _ ->
                             Assert.assertEquals(minWidth.toIntPx(), constraints.minWidth)
                             latch.countDown()
                         }
diff --git a/ui/ui-layout/src/androidTest/java/androidx/ui/layout/test/FlexTest.kt b/ui/ui-layout/src/androidTest/java/androidx/ui/layout/test/FlexTest.kt
index d8ba7b9..b12e9c5 100644
--- a/ui/ui-layout/src/androidTest/java/androidx/ui/layout/test/FlexTest.kt
+++ b/ui/ui-layout/src/androidTest/java/androidx/ui/layout/test/FlexTest.kt
@@ -1286,11 +1286,11 @@
             WithInfiniteConstraints {
                 ConstrainedBox(DpConstraints(minWidth = rowMinWidth)) {
                     Row {
-                        WithConstraints { constraints ->
+                        WithConstraints { constraints, _ ->
                             assertEquals(Constraints(), constraints)
                             FixedSizeLayout(inflexibleChildWidth.toIntPx(), 0.ipx, mapOf())
                         }
-                        WithConstraints { constraints ->
+                        WithConstraints { constraints, _ ->
                             assertEquals(Constraints(), constraints)
                             FixedSizeLayout(inflexibleChildWidth.toIntPx(), 0.ipx, mapOf())
                         }
@@ -1331,7 +1331,7 @@
                     )
                 ) {
                     Row {
-                        WithConstraints { constraints ->
+                        WithConstraints { constraints, _ ->
                             assertEquals(
                                 Constraints(
                                     maxWidth = availableWidth.toIntPx(),
@@ -1341,7 +1341,7 @@
                             )
                             FixedSizeLayout(childWidth.toIntPx(), childHeight.toIntPx(), mapOf())
                         }
-                        WithConstraints { constraints ->
+                        WithConstraints { constraints, _ ->
                             assertEquals(
                                 Constraints(
                                     maxWidth = availableWidth.toIntPx() - childWidth.toIntPx(),
@@ -1752,11 +1752,11 @@
                 WithInfiniteConstraints {
                     ConstrainedBox(DpConstraints(minHeight = columnMinHeight)) {
                         Column {
-                            WithConstraints { constraints ->
+                            WithConstraints { constraints, _ ->
                                 assertEquals(Constraints(), constraints)
                                 FixedSizeLayout(0.ipx, inflexibleChildHeight.toIntPx(), mapOf())
                             }
-                            WithConstraints { constraints ->
+                            WithConstraints { constraints, _ ->
                                 assertEquals(Constraints(), constraints)
                                 FixedSizeLayout(0.ipx, inflexibleChildHeight.toIntPx(), mapOf())
                             }
@@ -1796,7 +1796,7 @@
                     )
                 ) {
                     Column {
-                        WithConstraints { constraints ->
+                        WithConstraints { constraints, _ ->
                             assertEquals(
                                 Constraints(
                                     maxWidth = availableWidth.toIntPx(),
@@ -1806,7 +1806,7 @@
                             )
                             FixedSizeLayout(childWidth.toIntPx(), childHeight.toIntPx(), mapOf())
                         }
-                        WithConstraints { constraints ->
+                        WithConstraints { constraints, _ ->
                             assertEquals(
                                 Constraints(
                                     maxWidth = availableWidth.toIntPx(),
diff --git a/ui/ui-material/src/main/java/androidx/ui/material/Drawer.kt b/ui/ui-material/src/main/java/androidx/ui/material/Drawer.kt
index 4641a91..15f025c 100644
--- a/ui/ui-material/src/main/java/androidx/ui/material/Drawer.kt
+++ b/ui/ui-material/src/main/java/androidx/ui/material/Drawer.kt
@@ -111,7 +111,7 @@
     bodyContent: @Composable() () -> Unit
 ) {
     Container(expanded = true) {
-        WithConstraints { pxConstraints ->
+        WithConstraints { pxConstraints, _ ->
             // TODO : think about Infinite max bounds case
             if (!pxConstraints.hasBoundedWidth) {
                 throw IllegalStateException("Drawer shouldn't have infinite width")
@@ -178,7 +178,7 @@
     bodyContent: @Composable() () -> Unit
 ) {
     Container(expanded = true) {
-        WithConstraints { pxConstraints ->
+        WithConstraints { pxConstraints, _ ->
             // TODO : think about Infinite max bounds case
             if (!pxConstraints.hasBoundedHeight) {
                 throw IllegalStateException("Drawer shouldn't have infinite height")
diff --git a/ui/ui-material/src/main/java/androidx/ui/material/Slider.kt b/ui/ui-material/src/main/java/androidx/ui/material/Slider.kt
index 2433f55..0b6d4b4 100644
--- a/ui/ui-material/src/main/java/androidx/ui/material/Slider.kt
+++ b/ui/ui-material/src/main/java/androidx/ui/material/Slider.kt
@@ -185,7 +185,7 @@
 ) {
     Semantics(container = true, mergeAllDescendants = true) {
         Box(modifier = modifier) {
-            WithConstraints { constraints ->
+            WithConstraints { constraints, _ ->
                 val maxPx = constraints.maxWidth.value.toFloat()
                 val minPx = 0f
                 position.setBounds(minPx, maxPx)
diff --git a/ui/ui-material/src/main/java/androidx/ui/material/Tab.kt b/ui/ui-material/src/main/java/androidx/ui/material/Tab.kt
index d3050ee..0983074 100644
--- a/ui/ui-material/src/main/java/androidx/ui/material/Tab.kt
+++ b/ui/ui-material/src/main/java/androidx/ui/material/Tab.kt
@@ -150,7 +150,7 @@
     tab: @Composable() (Int, T) -> Unit
 ) {
     Surface(color = color, contentColor = contentColor) {
-        WithConstraints { constraints ->
+        WithConstraints { constraints, _ ->
             val width = constraints.maxWidth
             // TODO: force scrollable for tabs that will be too small if they take up equal space?
             if (scrollable) {