Skip to content

Instantly share code, notes, and snippets.

View alex-amenos's full-sized avatar

Àlex Amenós alex-amenos

View GitHub Profile
@alex-amenos
alex-amenos / Scrollbar.kt
Created March 30, 2022 19:42 — forked from mxalbert1996/Scrollbar.kt
Modifiers to draw scrollbars in Jetpack Compose
import android.view.ViewConfiguration
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.tween
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding