912 questions
0
votes
0
answers
24
views
Jetpack Compose Navigation navigate build backstack when navigating
I have the following nested graph:
@Serializable private data object Onboarding
@Serializable private data object OnboardingScreen1
@Serializable private data object OnboardingScreen2
@Serializable ...
1
vote
1
answer
67
views
How to pass data to nested navigation of Jetpack Compose Type-Safe Navigation?
I have two nested graph group and group details.
Group details graph has 3 screens, which need userId.
How do I pass data to the nested navigation? Without directly calling the first screen or other ...
0
votes
0
answers
55
views
Android Compose with Navigation - DeepLink with full URI
I’m using Jetpack Navigation with Compose in my application, and I need to parse a URI that can originate from two different sources:
1. A QR code scanned internally within the app.
2. A deep link.
...
1
vote
2
answers
48
views
How to test navigation in Jetpack Compose on user click?
I have an app where I have 2 screens:
NavHost(
navController = navController,
startDestination = UserListScreen
) {
composable<UserListScreen> {
UserListScreen(
...
3
votes
0
answers
29
views
How to Properly Handle Navigation and Back Stack Logic in Jetpack Compose Navigation?
I need an implementation that follows this navigation pattern. For example, there are screens a, b, c, and d. The navigation sequence is a > b > d > c > b > d. When we are on screen d ...
0
votes
0
answers
20
views
Separate content and title in Compose Multiplatform
I am making a Compose Multiplatform App and want to organize my layout based on the platform and screen size.
I would like this layout on mobile :
And this one for desktop :
But the toolbar is ...
0
votes
0
answers
16
views
Is it possible to use NavDeepLinkBuilder to build a explicit deep link based on serializable route?
The current NavDeepLinkBuilder seemingly only supports setDestination(id: int) or setDestination(id: String). I'm using navigationCompose = "2.8.0".
I tried to use MyRoute::class.serializer()...
0
votes
1
answer
219
views
Jetpack Compose Navigation - Adding custom NavType results in immediate return to startDestination
I'm having a strange issue using Jetpack Navigation for Compose when using a custom NavType. Library is updated to 2.8.4, my code is based off of this tutorial:
https://medium.com/mercadona-tech/type-...
0
votes
0
answers
26
views
Is is possible to pass annotation class as a arguments to compose navigation?
Is is possible to pass this as an arguments to compose navigation?
Now I stil used navigation xml to change from page to another one
I would like to change to navigation compose but I am not sure that ...
0
votes
0
answers
59
views
Jetpack navigation: How to update ViewModel on dialog close?
I'm working on a simple SoundBoard app to get familiar with Jetpack Compose and Navigation. I'm fairly new to both technologies and am struggling with this:
Main view in the app is a grid-like view of ...
1
vote
0
answers
19
views
Navigating to a top level destination doesn't save all toplevel states
Problem
There are three navigation graphs in my app as nested navigations : HomeGraph, ProfileGraph and MenuGraph. I want to achieve that when you navigate between these graphs through the ...
0
votes
1
answer
36
views
how to handle Back Navigation Logic for Horizontal View Pager with Nested Sub-Screens in Jetpack Compose?
How to write a logic for Horizontal view pager screens I have 4 main screen and in this 4 screen each screen has multiple screen or view depends how logic fits because there is a also back button in ...
0
votes
1
answer
38
views
Getting error for startDestination gives error in Wear Navigation Compose with type safety
How to use Navigation library in Wear compose with type safety version. The SwipeDismissableNavHost's startDestination propety doesn't accept Any value like NavHost.
Used Dependency for wear ...
0
votes
1
answer
44
views
Setting up bottom nav view with navController causes view model cleared when back pressed
My current version of navigation is:
implementation("androidx.navigation:navigation-fragment-ktx:2.8.0")
implementation("androidx.navigation:navigation-ui-ktx:2.8.0")
...
1
vote
2
answers
104
views
How to check if the current destination is top level in Jetpack Compose type-safe navigation?
I have a multibackstack navigation graph where each starting node for the bottom navigation is top level.
How can I check if I am currently in the top level destination in order to adjust the display ...