Skip to content

Slider Composable for the Jetpack Compose UI-toolkit for Android Application Development

License

Notifications You must be signed in to change notification settings

cybercoder-naj/sliding-bar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f698f42 · May 30, 2022

History

14 Commits
May 30, 2022
May 29, 2022
May 29, 2022
May 29, 2022
May 30, 2022
May 29, 2022
May 29, 2022
May 29, 2022
May 30, 2022
May 29, 2022
May 29, 2022
May 29, 2022
May 29, 2022
May 29, 2022
May 29, 2022

Repository files navigation

sliding-bar

View Releases and Changelog

MIT License JitPack Build

Slider Composable for the Jetpack Compose UI-toolkit for Android Application Development

Demo

Installation

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"
  }

Usage/Examples

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
)

Contributing

Contributions are always welcome!

See CONTRIBUTING.md for ways to get started.

License

MIT