Proper way to navigate fragments with Navigation within DrawerLayout
Im kinda new to jetpack component.. i was studying the navigator and hit a wall.. bc theres gotta be a elegant way to handle moving within all posible scenarios in a navigator within a drawer layout, but i cant manage to find it..
i got a drawerlayout with 4 items..(from a menu file)
i got the navcontroller:
val navHostFragment = supportFragmentManager.findFragmentById(R.id.nav_host_fragment) as
NavHostFragment
val navController = navHostFragment.navController
from drawer layout i can go...