This setup doesn't work because the list can never be in the position where it should show time text.
WearNavScaffold(
startDestination = NavScreen.Menu.route,
navController = navController,
// state = navState
) {
scalingLazyColumnComposable(
route = NavScreen.Menu.route,
scrollStateBuilder = { ScalingLazyListState(initialCenterItemIndex = 0) }
) {
ScalingLazyColumn(
modifier = modifier.scrollableColumn(focusRequester, scrollState),
state = scrollState,
horizontalAlignment = Alignment.CenterHorizontally,
autoCentering = AutoCenteringParams(itemIndex = 1, itemOffset = 30),
) {
Changing autocentering to itemIndex to be 0 works, so this isn't a critical bug.
But also the fix to scrollStateBuilder isn't great either, as it doesn't work for 1/30, but 2,-30 does???
scrollStateBuilder = { ScalingLazyListState(initialCenterItemIndex = 2, initialCenterItemScrollOffset = -30) }