Slide 61
Slide 61 text
自前でグリッドを作ってみる
inline fun LazyGridScope.chunkedItems(
items: List,
chunkSize: Int,
chunkedContentPadding: PaddingValues = PaddingValues(0.dp),
rowSpace: Dp = 0.dp,
noinline key: ((item: List) -> Any)? = null,
noinline span: (LazyGridItemSpanScope.(item: List) -> GridItemSpan)? = null,
noinline contentType: (item: List) -> Any? = { null },
crossinline itemContent: @Composable LazyGridItemScope.(item: T) -> Unit,
)