From d6fea59754020163531870023b4284f51057fcfa Mon Sep 17 00:00:00 2001 From: breandan Date: Fri, 12 Nov 2021 02:33:49 -0500 Subject: [PATCH] add OptIn annotation to falling-balls-web demo (#1364) --- .../falling-balls-web/src/jvmMain/kotlin/modifiers/position.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/falling-balls-web/src/jvmMain/kotlin/modifiers/position.kt b/examples/falling-balls-web/src/jvmMain/kotlin/modifiers/position.kt index ed072dac40..a73cbe5392 100644 --- a/examples/falling-balls-web/src/jvmMain/kotlin/modifiers/position.kt +++ b/examples/falling-balls-web/src/jvmMain/kotlin/modifiers/position.kt @@ -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) -} \ No newline at end of file +}