Navigation

fun Navigation(navController: NavHostController, innerPadding: PaddingValues, onChangeScreenInfo: (screenInfo: ScreenInfo) -> Unit)

This composable manages screen navigation within the application based on user actions. It utilizes a NavHost to handle screen transitions and provides callbacks for updating the toolbar information associated with each screen.

Parameters

navController

the component used to navigate between screens.

innerPadding

the padding values typically provided by the scaffold function in the Home Screen.

onChangeScreenInfo

an event fired whenever the screen information (title, toolbar components) needs to be updated. This typically happens when switching screens.