TopBar

fun TopBar(navController: NavHostController, showGoBackButton: Boolean = true)

Composable function for creating a top bar.

Parameters

navController

The NavController for navigating between screens.

showGoBackButton

A flag indicating whether to show the go back button. By default, it is set to true.