Yingding Wang
12/27/2022, 1:07 PMhorologist==0.2.5
, the NavGraphBuilder.scalingLazyColumnComposable
is deprecated, i shall use the listComposable
@Deprecated(
"Use listComposable"
)
public fun NavGraphBuilder.scalingLazyColumnComposable(
In the nav example, NavGraphBuilder.scrollable
has replaced NavGraphBuilder.scalingLazyColumnComposable
, what is the difference between listComposable
and scrollable
? The only listComposable
which I can find in NavGraphBuilder
is lazyListComposable
. Thanks for any hint in advance.yschimke
12/27/2022, 9:21 PMyschimke
12/27/2022, 9:22 PMyschimke
12/27/2022, 9:23 PMyschimke
12/27/2022, 9:24 PMyschimke
12/27/2022, 9:25 PMyschimke
12/27/2022, 10:37 PMyschimke
12/28/2022, 6:34 AMlistComposable
is a typo! Should be scrollable
, there is also lazyListComposable
and scrollStateComposable
yschimke
12/28/2022, 6:57 AMyschimke
12/28/2022, 6:58 AMyschimke
12/28/2022, 6:58 AMYingding Wang
12/28/2022, 12:47 PMyschimke
12/29/2022, 1:23 AMscrollable(
route = "menu",
// optional method to configure initial layout
columnStateFactory = ScalingLazyColumnDefaults.belowTimeText(
rotaryMode = Fling,
firstItemIsFullWidth = false
)
) {
com.google.android.horologist.compose.layout.ScalingLazyColumn(
modifier = Modifier.fillMaxSize(),
columnState = it.columnState,
) {