Open wakaztahir opened 1 year ago
I went back to 1.2.1 but now I'm getting onWasmReady isn't defined in the console https://github.com/JetBrains/compose-jb/issues/2273 It says it fails the first time but on my computer I ran multiple times but its still undefined !
Ok I had to had <scrip src="skiko.js"></script>
but it still doesn't work yet :)
Ok now it works , forgot adding , #ComposeTarget canvas in index.html
lovely , I can't believe it , material3 in the browser 🥇
some things though 1 - painterResource is missing 2 - canvas width and height changing doesn't update the width and height of the app , need api to change it while its running
me using this code to make it like full screen
<script>
let targetCanvas = document.getElementById("ComposeTarget")
targetCanvas.width = document.documentElement.clientWidth
targetCanvas.height = document.documentElement.clientHeight
</script>
3 - isSystemInDarkTheme doesn't work
I also had to hard code my strings , like since coming from Android , just imported the strings.xml into Kotlin file and made it an object , I think sharing Resources should be solved first , Thanks for this incredible library !
1 - painterResource is missing 2 - canvas width and height changing doesn't update the width and height of the app , need api to change it while its running
me using this code to make it like full screen
3 - isSystemInDarkTheme doesn't work I think sharing Resources should be solved first
Web target is still experimental. We are aware of these issues, but thank you that you let us know them again :)
compose for iOS(Alpha) currently doesn't have this class.
error: Module "org.jetbrains.compose.foundation:foundation (org.jetbrains.compose.foundation:foundation-uikitsimarm64)" has a reference to symbol [ File '/opt/buildAgent/work/172e546b22c60d2b/compose/frameworks/support/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridMeasureResult.kt' <- androidx.compose.foundation.lazy.staggeredgrid/LazyStaggeredGridPositionedItem|null[0] ]. Neither the module itself nor its dependencies contain such declaration.
A workaround(?) for iOS at least seems to be to use Gradle 8.0, Kotlin 1.8.10, and Compose 1.5.0-dev1049.
Kotlin 1.8.20 in this configuration causes the following compilation error:
error: java.lang.IllegalStateException: Suspend functions should be lowered out at this point, but FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> ($receiver:androidx.compose.foundation.gestures.PressGestureScope, it:androidx.compose.ui.geometry.Offset) returnType:kotlin.Unit [suspend] is still here
which is supposedly fixed in Kotlin 1.9.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.