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
77import com.huanshankeji.compose.foundation.ext.roundedCornerBackgroundAndOuterBorder
88import com.huanshankeji.compose.foundation.ext.roundedCornerOuterBorder
99import com.huanshankeji.compose.foundation.layout.*
10+ import com.huanshankeji.compose.foundation.layout.ext.outerPadding
1011import com.huanshankeji.compose.foundation.lazy.LazyColumn
1112import com.huanshankeji.compose.foundation.lazy.LazyListScope
1213import 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
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import androidx.compose.ui.unit.dp
55import com.huanshankeji.compose.foundation.VerticalScrollBox
66import com.huanshankeji.compose.foundation.background
77import com.huanshankeji.compose.foundation.layout.*
8+ import com.huanshankeji.compose.foundation.layout.ext.outerPadding
89import com.huanshankeji.compose.foundation.text.KeyboardActions
910import com.huanshankeji.compose.foundation.text.KeyboardOptions
1011import 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" )
You can’t perform that action at this time.
0 commit comments