android: set currentDestination to null by default

This commit is contained in:
Harsh Shandilya 2022-02-06 15:28:12 +05:30
parent cc6ca5e6b1
commit de5d7fe42c
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -53,7 +53,7 @@ fun LobstersApp(
val navController = rememberNavController()
// The destination needs to be tracked here rather than used directly since
// `NavController#currentDestination` is not a Composable state.
var currentDestination by remember { mutableStateOf(Destinations.Hottest.getRoute()) }
var currentDestination by remember { mutableStateOf<String?>(null) }
var isFabVisible by remember { mutableStateOf(false) }
val nestedScrollConnection = remember {
object : NestedScrollConnection {