Questions tagged [navigation-compose]
19 questions
0
votes
0 answers
Instantiate ViewModel with composable scope
I want to instantiate a ViewModel with scope of a Composable function.
How can I do this?
I don't want to use navigation-compose to take advantage of its BackStackEntry as ViewModelStoreOwner.

beigirad
- 4,986
- 2
- 29
- 52
0
votes
1 answer
JetpackCompose Fragment onCreate issue
I need to call a function in my SignScreen's onCreate method but there is not any applicable place for this. I can't call currentUserCheck function from anywhere.
What i tried :
Calling it in init block in viewModel. But the problem was it throwing…

Sevban Bayır
- 196
- 3
- 13
0
votes
1 answer
Does NavOptionsBuilder.launchSingleTop work with nested navigation graphs in Jetpack Compose?
I'm using BottomNavigation in Jetpack Compose with navigation-compose:2.5.0-alpha04 and I want to encapsulate each tab's flow with nested navigation. To achieve this I created a single NavHost with different graphs inside:
NavHost(
…

Calamity
- 700
- 7
- 23
-1
votes
1 answer
Going from one screen to another by tapping on item in list of menu items
I have an app which display list of menu items retrieved from server and stored in room database. Now i want to add another screen that should display details of item that user would click on the 1st screen.
How can i implement this? As i am using…

Muhammad Iqbal
- 1
- 2