From 100a3a9909a359aabf772b876af4984b4d06fb50 Mon Sep 17 00:00:00 2001 From: Yongshun Shreck Ye Date: Wed, 4 Dec 2024 17:31:41 +0800 Subject: [PATCH] Run IntelliJ IDEA Code Cleanup again --- .../kotlin/com/huanshankeji/compose/material/demo/Common.kt | 3 ++- .../kotlin/com/huanshankeji/compose/material/demo/Material2.kt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Common.kt b/demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Common.kt index 2cf22ae1..786fa6e9 100644 --- a/demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Common.kt +++ b/demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Common.kt @@ -7,6 +7,7 @@ import com.huanshankeji.compose.foundation.ext.outerBorder import com.huanshankeji.compose.foundation.ext.roundedCornerBackgroundAndOuterBorder import com.huanshankeji.compose.foundation.ext.roundedCornerOuterBorder import com.huanshankeji.compose.foundation.layout.* +import com.huanshankeji.compose.foundation.layout.ext.outerPadding import com.huanshankeji.compose.foundation.lazy.LazyColumn import com.huanshankeji.compose.foundation.lazy.LazyListScope import com.huanshankeji.compose.foundation.lazy.LazyRow @@ -26,7 +27,7 @@ fun Common(/*modifier: Modifier = Modifier*/) { @Composable fun ColorBox(color: Color) = - Box(Modifier.padding(8.dp).background(color).size(40.dp)) + Box(Modifier.outerPadding(8.dp).background(color).size(40.dp)) val halfGreen = Color(0, 0x80, 0x00) diff --git a/demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Material2.kt b/demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Material2.kt index b44bcd91..fd0c4097 100644 --- a/demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Material2.kt +++ b/demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Material2.kt @@ -5,6 +5,7 @@ import androidx.compose.ui.unit.dp import com.huanshankeji.compose.foundation.VerticalScrollBox import com.huanshankeji.compose.foundation.background import com.huanshankeji.compose.foundation.layout.* +import com.huanshankeji.compose.foundation.layout.ext.outerPadding import com.huanshankeji.compose.foundation.text.KeyboardActions import com.huanshankeji.compose.foundation.text.KeyboardOptions import com.huanshankeji.compose.foundation.text.input.ImeAction @@ -73,7 +74,7 @@ fun Material2(/*modifier: Modifier = Modifier*/) { IconButton(onClick, icon = Icons.Default.Add, contentDescription = "increment count") } - val listModifier = Modifier.padding(16.dp).height(listSize) + val listModifier = Modifier.outerPadding(16.dp).height(listSize) List(listModifier) { item { Text("Ungrouped item")