Skip to content

Commit 48b0806

Browse files
committed
Simplify a line of code
1 parent 38b4852 commit 48b0806

File tree

1 file changed

+2
-1
lines changed
  • compose-multiplatform-material3/src/androidxCommonMain/kotlin/com/huanshankeji/compose/material3/ext

1 file changed

+2
-1
lines changed

compose-multiplatform-material3/src/androidxCommonMain/kotlin/com/huanshankeji/compose/material3/ext/Button.androidxCommon.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import androidx.compose.runtime.Composable
77
import androidx.compose.ui.unit.dp
88
import com.huanshankeji.compose.foundation.layout.size
99
import com.huanshankeji.compose.ui.Modifier
10+
import com.huanshankeji.compose.ui.PlatformModifier
1011

1112
@Composable
1213
private fun (@Composable (() -> Unit)).toRowScopeContent(
@@ -18,7 +19,7 @@ private fun (@Composable (() -> Unit)).toRowScopeContent(
1819

1920
@Composable
2021
fun Spacer() =
21-
Spacer(androidx.compose.ui.Modifier.size(8.dp))
22+
Spacer(PlatformModifier.size(8.dp))
2223

2324
if (icon === null)
2425
this@toRowScopeContent()

0 commit comments

Comments
 (0)