Slider Composable for the Jetpack Compose UI-toolkit for Android Application Development
Add JitPack url to your settings.gradle
file
repositories {
maven { url 'https://jitpack.io' }
}
And the dependency in your app build.gradle
file
dependencies {
implementation "com.github.cybercoder-naj:sliding-bar:$version"
}
Remember to add the @ExperimentalComposeUiApi
annotation to your class/function.
SlidingBar(
value = value,
onValueChanged = { value = it },
modifier = Modifier
.padding(horizontal = 64.dp)
.fillMaxWidth(),
colors = SlidingBarDefaults.colors(
colorPrimary = Color.Green,
colorTrack = Color.Blue
),
valueRange = 0f..30f,
stepSize = 1f
)
Contributions are always welcome!
See CONTRIBUTING.md for ways to get started.