Issue I am working on an app in Jetpack and I want to traverse from one compose screen to another. I have a login compose and I want whenever the button from the login compose is clicked to go to
Continue readingTag: android-jetpack-navigation
NullPointerException on navigate function – Jetpack Compose NavHostController
Issue I implemented Google OneTap Authentication using FirebaseAuth on my Jetpack Compose application. The problem I face is that after I sign in successfully, if I close my application and start it again I get a NullPointerException caused by my
Continue readingnavigation argument always taking default value or null in jetpack compose
Issue I am trying navigation in Android Jetpack Compose. But the problem is when I try to get the parameter using navBackStackEntry it always gives null or the default value which I have set. I am using following gradle dependencies
Continue readingDrawer menu blocked by fragment menu
Issue So, I have an app that are using drawer menu and some fragments. But, when the fragment i’am on a fragment that have a menu, it completely blocked my drawer menu even if the burger icon is still visible.
Continue readingCompose hiltViewModel returns a new instance
Issue I need the instance of activity ViewModel from a compose navigation screen, and found this post. In MainActivity, the ViewModel instance is obtained by setContent { val viewModel = viewModel<MainViewModel>() MainScreen( … } In NavHost NavHost(navController, startDestination = "home")
Continue readingHow to handle mutiple clicks on popBackStack() in jetpack compose
Issue When i click on back icon multiple times it calls navController.popBackStack() that many times and leaves me with a blank screen. How to deal with it? Scaffold( topBar = { PhotoDetailTopBar( onBackClick = { navController.popBackStack() }, onInfoClick = {
Continue readingAvoid API call in composable when navigating back to it
Issue What I’m trying to do is avoid to make the api call that is called in a composable when press back from another composable. I have composable DetailScreen that makes the api call and get some data and then
Continue readingIs there a way to implement a dropdown menu within a topbar?
Issue I am relatively new to Kotlin. Currently I am making a demo for an app, in the demo I have a CenterAlignedTopBar with a title and a navigationIcon. Eventually I want to use the navigationIcon to show a LazyColumn
Continue readingHow can I navigate to a new screen with varied data from a lazy vertical grid in Jetpack Compose?
Issue Subject Section As shown in the above image, I want to navigate to subject screen from this home screen. But I want data of that subject to load into new screen when clicked on each subjects. Right now, it
Continue readingHow to Navigate to mutliple Destinations from a Single Destination Using Jetpack Compose
Issue In summary I want to navigate to a destination depending on which item is clicked. But the problem is the way I created these items, which is in a way I don’t how to isolate item, and give them
Continue reading