mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 08:17:04 +05:30
android: set currentDestination to null by default
This commit is contained in:
parent
cc6ca5e6b1
commit
de5d7fe42c
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue