mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
add OptIn annotation to falling-balls-web demo (#1364)
This commit is contained in:
@@ -9,6 +9,7 @@ import org.jetbrains.compose.common.ui.unit.implementation
|
||||
import androidx.compose.foundation.layout.offset
|
||||
|
||||
@Composable
|
||||
@OptIn(ExperimentalComposeWebWidgetsApi::class)
|
||||
actual fun Modifier.position(width: Dp, height: Dp): Modifier = castOrCreate().apply {
|
||||
modifier = modifier.offset(width.implementation, height.implementation)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user