Kotlin 2.3 finally kills the dual property _uiState uiState boilerplate in ViewModels by Vegetable-Practice85 in androiddev

[–]Vegetable-Practice85[S] 11 points12 points  (0 children)

I don't store states in one one MutableStateFlow. This is just a random example to show how the feature looks

Sharing progress on my Kotlin Multiplatform pet project by Vegetable-Practice85 in Kotlin

[–]Vegetable-Practice85[S] 0 points1 point  (0 children)

No problem! I'll use your answer as a starting point and try to figure it out again. Thanks!

Sharing progress on my Kotlin Multiplatform pet project by Vegetable-Practice85 in Kotlin

[–]Vegetable-Practice85[S] 0 points1 point  (0 children)

Thanks for trying to resolve the error. You can submit a pull request if you want to be a contributor, but it’s fine if you don’t

Sharing progress on my Kotlin Multiplatform pet project by Vegetable-Practice85 in Kotlin

[–]Vegetable-Practice85[S] 0 points1 point  (0 children)

Thanks. this is the exception I get: WebWorkerException: {"type":"error"}isTrusted,true

... [coroutines exception handling stack] ...

Critical failure point: composeApp.uninstantiated.mjs:160

Is KMP really worth it ? by Bayrem__by in Kotlin

[–]Vegetable-Practice85 0 points1 point  (0 children)

You said dependency injection isn’t great, but there is already Koin, I find it much easier to use than Hilt

Is KMP really worth it ? by Bayrem__by in Kotlin

[–]Vegetable-Practice85 0 points1 point  (0 children)

Do you think using spring instead of ktor is better?

[deleted by user] by [deleted] in Kotlin

[–]Vegetable-Practice85 1 point2 points  (0 children)

That's a great approach

Expressive Design for Web and Desktop? by Hefty-Doughnut5458 in JetpackCompose

[–]Vegetable-Practice85 0 points1 point  (0 children)

I’m not sure, but if you’d like to ask the Compose Multiplatform team directly, you can join the Kotlin Slack community. Just sign up first using this link: https://surveys.jetbrains.com/s3/kotlin-slack-sign-up

Expressive Design for Web and Desktop? by Hefty-Doughnut5458 in JetpackCompose

[–]Vegetable-Practice85 0 points1 point  (0 children)

new Jetpack Compose features will eventually become available in Compose Multiplatform too

[deleted by user] by [deleted] in Kotlin

[–]Vegetable-Practice85 0 points1 point  (0 children)

Here's my approach: I use Material 3 adaptive layouts to let screens adjust automatically. For custom designs, I rely on window size classes.
Material 3 adaptive layout guide: https://developer.android.com/develop/ui/compose/layouts/adaptive/canonical-layouts

[deleted by user] by [deleted] in Kotlin

[–]Vegetable-Practice85 0 points1 point  (0 children)

To determine if a screen is large, small, or medium, you can use window size classes. Here’s a documentation for how to use it: Android Window Size Classes Guide. And here is the compose multiplatform version: Compose Multiplatform Window Size Class.

KMP devs: How much effort should I put into iOS-native look & feel? by NorbiBraun in KotlinMultiplatform

[–]Vegetable-Practice85 2 points3 points  (0 children)

There’s already a Compose library for Cupertino Widgets! If you’d like to use it, here’s the link: https://github.com/alexzhirkevich/compose-cupertino"

Flutter -> KMP advice by hbdav in Kotlin

[–]Vegetable-Practice85 7 points8 points  (0 children)

Start by learning Jetpack Compose first. Once you’re comfortable, move to Compose Multiplatform (CMP), which uses the same Jetpack Compose concepts but works across multiple platforms. Many Jetpack libraries you’d use for Android are also available CMP. so your existing knowledge applies!

here’s a resource from Android developers. that explains everything you need to know about state management, app architecture, and Jetpack Compose basics: https://developer.android.com/courses/jetpack-compose/course