Skip to content

Instantly share code, notes, and snippets.

View andkulikov's full-sized avatar

Andrey Kulikov andkulikov

View GitHub Profile
@andkulikov
andkulikov / LazyTimeGraph.kt
Last active July 27, 2023 08:53
Code from the "Thinking outside the Box: Custom Compose layouts" Droidcon London 2022 talk https://www.droidcon.com/2022/11/16/thinking-outside-the-box-custom-compose-layouts/
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.clipScrollableContainer
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.gestures.ScrollableState
import androidx.compose.foundation.gestures.scrollable
import androidx.compose.foundation.lazy.layout.LazyLayout
import androidx.compose.foundation.lazy.layout.LazyLayoutItemProvider
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
Code from https://www.youtube.com/watch?v=GhAU3NJPl5E