oleksandrbalan / lazytable

Lazy layout to display columns and rows of data on the two directional plane.
Apache License 2.0
292 stars 12 forks source link

Crash on snap/animate to cell #28

Open tylerwilson opened 6 months ago

tylerwilson commented 6 months ago

Good day,

I am using code very similar what is shown in here but I get a crash when I call the snapToCell (or animateToCell) method, like so:

kotlin.UninitializedPropertyAccessException: lateinit property positionProvider has not been initialized at eu.wewox.minabox.MinaBoxState.getPositionProvider(MinaBoxState.kt:53) at eu.wewox.lazytable.LazyTableState.getPositionProvider(LazyTableState.kt:53) at eu.wewox.lazytable.LazyTableState.getCellOffset-xEiAX8E(LazyTableState.kt:105) at eu.wewox.lazytable.LazyTableState.animateToCell(LazyTableState.kt:74) at eu.wewox.lazytable.LazyTableState.animateToCell$default(LazyTableState.kt:67) at com.salonbiz.library.views.FindTimesViewKt$FindTimesView$3$1.invokeSuspend(FindTimesView.kt:66)

I am unsure if I missing something, but it appears it should be creating the minabox.positionProvider, but it is not, hence the crash.

Any and all help appreciated. Thank you!

Using LazyTable 1.8.0 with Compose multi-platform 1.6.1.