Skip to content

Commit aa06422

Browse files
committed
Fix some ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT warnings
1 parent fce7b65 commit aa06422

File tree

2 files changed

+4
-1
lines changed
  • compose-multiplatform-common/src

2 files changed

+4
-1
lines changed

compose-multiplatform-common/src/androidxCommonMain/kotlin/com/huanshankeji/compose/foundation/layout/Row.androidxCommon.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ actual interface RowScope {
3131
@JvmInline
3232
actual value class Impl(override val platformValue: PlatformRowScope) : RowScope
3333

34+
@Stable
3435
actual fun Modifier.weight(
3536
@FloatRange(from = 0.0, fromInclusive = false)
3637
weight: Float

compose-multiplatform-common/src/jsMain/kotlin/com/huanshankeji/compose/foundation/Scroll.js.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.huanshankeji.compose.foundation
22

33
import androidx.compose.runtime.Composable
4+
import androidx.compose.runtime.Stable
45
import com.huanshankeji.compose.foundation.ext.css.horizontalScroll
56
import com.huanshankeji.compose.foundation.ext.css.verticalScroll
67
import com.huanshankeji.compose.ui.Modifier
@@ -21,7 +22,8 @@ val horizontalScrollPlatformModifier = PlatformModifier.horizontalScroll()
2122
actual fun rememberScrollState(initial: Int): ScrollState =
2223
ScrollState
2324

24-
actual typealias ScrollState = Unit
25+
@Stable
26+
actual object ScrollState
2527

2628
actual fun Modifier.verticalScroll(state: ScrollState): Modifier =
2729
platformModify { verticalScroll() }

0 commit comments

Comments
 (0)