From 9d46d2d262a08cfa9c97af6e82e8d0872f60fb89 Mon Sep 17 00:00:00 2001 From: Colin White Date: Wed, 13 Dec 2023 13:11:31 -0500 Subject: [PATCH] Fix formatting. --- redwood-layout-schema/README.md | 52 ++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/redwood-layout-schema/README.md b/redwood-layout-schema/README.md index 7c4642d97f..60b658d300 100644 --- a/redwood-layout-schema/README.md +++ b/redwood-layout-schema/README.md @@ -1,13 +1,17 @@ # Redwood Layout -Redwood's layout system provides common layout primitives to support arranging and laying out widgets. It provides widgets for: +Redwood's layout system provides common layout primitives to support arranging and laying out +widgets. It provides widgets for: - `Row`: Lays wigets out along the X axis (horizontally). - `Column`: Lays widgets out along the Y axis (vertically). - `Box`: Lays widgets out along the Z axis (on top of eachother). - `Spacer`: Adds space between widgets. -Internally the layout system uses a common layout engine written in Kotlin Multiplatform to support consistent rendering across platforms. The system provides widget bindings for for Android Views (`redwood-layout-view`), iOS UiKit (`redwood-layout-uiview`), and Compose UI (`redwood-layout-composeui`). +Internally the layout system uses a common layout engine written in Kotlin Multiplatform to support +consistent rendering across platforms. The system provides widget bindings for for Android +Views (`redwood-layout-view`), iOS UiKit (`redwood-layout-uiview`), and Compose +UI (`redwood-layout-composeui`). ## Widgets @@ -17,9 +21,9 @@ Lays widgets out along the X axis (horizontally). ```kotlin Row { - Text("One") - Text("Two") - Text("Three") + Text("One") + Text("Two") + Text("Three") } ``` @@ -33,9 +37,9 @@ Lays widgets out along the Y axis (vertically). ```kotlin Column { - Text("One") - Text("Two") - Text("Three") + Text("One") + Text("Two") + Text("Three") } ``` @@ -49,18 +53,18 @@ Lays widgets out along the Z axis (on top of eachother). ```kotlin Box { - Color( - color = Red, - modifier = Modifier.size(24.dp), - ) - Color( - color = Green, - modifier = Modifier.size(16.dp), - ) - Color( - color = Blue, - modifier = Modifier.size(8.dp), - ) + Color( + color = Red, + modifier = Modifier.size(24.dp), + ) + Color( + color = Green, + modifier = Modifier.size(16.dp), + ) + Color( + color = Blue, + modifier = Modifier.size(8.dp), + ) } ``` @@ -74,12 +78,12 @@ Adds space between widgets. ```kotlin Column { - Text("Top") - Spacer(height = 24.dp) - Text("Bottom") + Text("Top") + Spacer(height = 24.dp) + Text("Bottom") } ```

- +