Browse Source

add OptIn annotation to falling-balls-web demo (#1364)

pull/1390/head
breandan 3 years ago committed by GitHub
parent
commit
d6fea59754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      examples/falling-balls-web/src/jvmMain/kotlin/modifiers/position.kt

3
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)
}
}

Loading…
Cancel
Save