Closed KhubaibKhan4 closed 4 months ago
Hi @KhubaibKhan4,
I see no specific error or reproduction steps in the description that I can use to actually reproduce it. Also, you forgot to specify what version of the navigation library you use. It's not clear what's exactly going wrong here, what's "overlay" means, etc.
Please provide a reproducible minimal sample (not the full app).
Also, you can refer to this example that works on all mentioned platforms: https://github.com/MatkovIvan/nav_cupcake
I don't know what's the issue with navigation use Compose Navigation Library. Yesterday, I was trying to Convert YouTube-Clone-KMP to Compose Navigation. I converted the full application to it. But When it comes to running the Desktop + Web Application, I was facing the above error. The Error is like: When i run the application, that takes some more time than Previous Library. Secondly when I click on any Video Thumbnail to Navigate on Detail Screen with Video Players and other stuff, I get error. An Overlay appears above & no Navigation Happens.
Let me share Screenshots with Other Library and With Compose Navigation Library:
Voyager Libs Navigation:
Compose Navigation issue:
Now, i again revert back my Repository: Repository Link: https://github.com/KhubaibKhan4/Youtube-Clone-KMP
I don't see that the Jetpack navigation library is used/included in the provided project at all - you're using Voyager there and recent commits with related titles didn't change dependencies.
Please provide a reproducible minimal sample of the described problem so I can help here
I just revert back from Jetpack Compose Navigation and still doing some work. Here is dependency: implementation("org.jetbrains.androidx.navigation:navigation-compose:2.7.0-alpha03")
After facing that issue, I revert back.
You're manually/explicitly drawing HomeScreen second time above navigation-controlled content.
Thank you. My bad 😔
But still one thing. Navigation on Desktop + Desktop is really leggy. Hopefully that will be resolved soon.
I saw performance problems in your project, but I don't think that it's related to the navigation. If you think that's the case - please prepare a separate report with measurements before/after. Note that for "reproduction sample" it's much better to attach a minimal project with the isolated case, but not just your entire project.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Describe the bug Compose Multiplatform Official Navigation Library doesn't work on Desktop & Web Platforms in Compose + Kotlin Multiplatform.
Affected platforms
Versions
To Reproduce Steps and/or the code snippet to reproduce the behavior:
Expected behavior When I try to run Desktop Application or Web. They both run fine but when I click on any items in the List, an overlay appears and I'm unable to navigate but that's works on iOS + Android.
Screenshots Here is the screen UI after clicking on item in the list and this overlay appears.![Screenshot 2024-05-07 104247](https://github.com/JetBrains/compose-multiplatform/assets/98816544/915f1b98-a8d7-4720-bed0-28924182446e)