Skip to content

Commit 100a3a9

Browse files
committed
Run IntelliJ IDEA Code Cleanup again
1 parent eaab148 commit 100a3a9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Common.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import com.huanshankeji.compose.foundation.ext.outerBorder
77
import com.huanshankeji.compose.foundation.ext.roundedCornerBackgroundAndOuterBorder
88
import com.huanshankeji.compose.foundation.ext.roundedCornerOuterBorder
99
import com.huanshankeji.compose.foundation.layout.*
10+
import com.huanshankeji.compose.foundation.layout.ext.outerPadding
1011
import com.huanshankeji.compose.foundation.lazy.LazyColumn
1112
import com.huanshankeji.compose.foundation.lazy.LazyListScope
1213
import com.huanshankeji.compose.foundation.lazy.LazyRow
@@ -26,7 +27,7 @@ fun Common(/*modifier: Modifier = Modifier*/) {
2627

2728
@Composable
2829
fun ColorBox(color: Color) =
29-
Box(Modifier.padding(8.dp).background(color).size(40.dp))
30+
Box(Modifier.outerPadding(8.dp).background(color).size(40.dp))
3031

3132
val halfGreen = Color(0, 0x80, 0x00)
3233

demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Material2.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import androidx.compose.ui.unit.dp
55
import com.huanshankeji.compose.foundation.VerticalScrollBox
66
import com.huanshankeji.compose.foundation.background
77
import com.huanshankeji.compose.foundation.layout.*
8+
import com.huanshankeji.compose.foundation.layout.ext.outerPadding
89
import com.huanshankeji.compose.foundation.text.KeyboardActions
910
import com.huanshankeji.compose.foundation.text.KeyboardOptions
1011
import com.huanshankeji.compose.foundation.text.input.ImeAction
@@ -73,7 +74,7 @@ fun Material2(/*modifier: Modifier = Modifier*/) {
7374
IconButton(onClick, icon = Icons.Default.Add, contentDescription = "increment count")
7475
}
7576

76-
val listModifier = Modifier.padding(16.dp).height(listSize)
77+
val listModifier = Modifier.outerPadding(16.dp).height(listSize)
7778
List(listModifier) {
7879
item {
7980
Text("Ungrouped item")

0 commit comments

Comments
 (0)