yschimke
03/14/2022, 11:25 AMkey(currentBackStackEntry?.destination?.route)
but surprised I needed to. Is this expected? Am I doing something wrong with when I'm accessing a state field? Or is it a bug in PositionIndicator?yschimke
03/14/2022, 11:26 AMpositionIndicator = {
val scalingLazyListState = viewModel?.scrollableState as ScalingLazyListState?
if (scalingLazyListState != null) {
key(currentBackStackEntry?.destination?.route) {
MyPositionIndicator(scalingLazyListState)
}
}
},
yschimke
03/14/2022, 11:48 AMJohn Nichol
03/14/2022, 11:52 AMSergio Sancho
03/14/2022, 3:06 PMyschimke
03/14/2022, 3:07 PMyschimke
03/14/2022, 3:11 PMyschimke
03/14/2022, 4:21 PMyschimke
03/14/2022, 4:24 PMnavController.currentBackStackEntryAsState()
.Steve Bower [G]
03/15/2022, 9:51 AMSergio Sancho
03/15/2022, 11:46 AMyschimke
03/15/2022, 3:56 PMyschimke
03/16/2022, 8:48 AMyschimke
03/16/2022, 8:50 AMcurrentBackStackEntryAsState
to change?