devDebajo / staggered_lazy_column

Simple implementation of StaggeredLazyColumn with Jetpack Compose
Apache License 2.0
4 stars 0 forks source link

Span support #1

Open proninyaroslav opened 2 years ago

proninyaroslav commented 2 years ago

Currently it's not possible to specify a span for an item, is there any workaround possible?

devDebajo commented 2 years ago

hm, what do mean by span? span API exist in LazyVerticalGrid, i thought that the spans not need in StaggeredLazyColumn

please show the case, when you need to use spans in StaggeredLazyColumn

proninyaroslav commented 2 years ago

For example, I need to add a header to the beginning of the column, which would take up the entire width.

devDebajo commented 2 years ago

I understood. It seems to be difficult to implement I need to think about it

devDebajo commented 2 years ago

I think in your case you can use Scaffold with collapsing topBar TopBar will be imitate first element in list

proninyaroslav commented 2 years ago

The header must be part of the list and scroll along with it

devDebajo commented 2 years ago

Unfortunately, now I can`t offer any more solutions (