File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import com.huanshankeji.compose.foundation.ext.outerBorder
7
7
import com.huanshankeji.compose.foundation.ext.roundedCornerBackgroundAndOuterBorder
8
8
import com.huanshankeji.compose.foundation.ext.roundedCornerOuterBorder
9
9
import com.huanshankeji.compose.foundation.layout.*
10
+ import com.huanshankeji.compose.foundation.layout.ext.outerPadding
10
11
import com.huanshankeji.compose.foundation.lazy.LazyColumn
11
12
import com.huanshankeji.compose.foundation.lazy.LazyListScope
12
13
import com.huanshankeji.compose.foundation.lazy.LazyRow
@@ -26,7 +27,7 @@ fun Common(/*modifier: Modifier = Modifier*/) {
26
27
27
28
@Composable
28
29
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))
30
31
31
32
val halfGreen = Color (0 , 0x80 , 0x00 )
32
33
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import androidx.compose.ui.unit.dp
5
5
import com.huanshankeji.compose.foundation.VerticalScrollBox
6
6
import com.huanshankeji.compose.foundation.background
7
7
import com.huanshankeji.compose.foundation.layout.*
8
+ import com.huanshankeji.compose.foundation.layout.ext.outerPadding
8
9
import com.huanshankeji.compose.foundation.text.KeyboardActions
9
10
import com.huanshankeji.compose.foundation.text.KeyboardOptions
10
11
import com.huanshankeji.compose.foundation.text.input.ImeAction
@@ -73,7 +74,7 @@ fun Material2(/*modifier: Modifier = Modifier*/) {
73
74
IconButton (onClick, icon = Icons .Default .Add , contentDescription = " increment count" )
74
75
}
75
76
76
- val listModifier = Modifier .padding (16 .dp).height(listSize)
77
+ val listModifier = Modifier .outerPadding (16 .dp).height(listSize)
77
78
List (listModifier) {
78
79
item {
79
80
Text (" Ungrouped item" )
You can’t perform that action at this time.
0 commit comments