From 48b0806768279b2e747cf69166505370ba601fc4 Mon Sep 17 00:00:00 2001 From: Yongshun Shreck Ye Date: Mon, 11 Nov 2024 22:17:25 +0800 Subject: [PATCH] Simplify a line of code --- .../compose/material3/ext/Button.androidxCommon.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compose-multiplatform-material3/src/androidxCommonMain/kotlin/com/huanshankeji/compose/material3/ext/Button.androidxCommon.kt b/compose-multiplatform-material3/src/androidxCommonMain/kotlin/com/huanshankeji/compose/material3/ext/Button.androidxCommon.kt index aa8922e8..77ccb27f 100644 --- a/compose-multiplatform-material3/src/androidxCommonMain/kotlin/com/huanshankeji/compose/material3/ext/Button.androidxCommon.kt +++ b/compose-multiplatform-material3/src/androidxCommonMain/kotlin/com/huanshankeji/compose/material3/ext/Button.androidxCommon.kt @@ -7,6 +7,7 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.unit.dp import com.huanshankeji.compose.foundation.layout.size import com.huanshankeji.compose.ui.Modifier +import com.huanshankeji.compose.ui.PlatformModifier @Composable private fun (@Composable (() -> Unit)).toRowScopeContent( @@ -18,7 +19,7 @@ private fun (@Composable (() -> Unit)).toRowScopeContent( @Composable fun Spacer() = - Spacer(androidx.compose.ui.Modifier.size(8.dp)) + Spacer(PlatformModifier.size(8.dp)) if (icon === null) this@toRowScopeContent()