Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cybercoder-naj/sliding-bar
Slider Composable for the Jetpack Compose UI-toolkit for Android Application Development
https://github.com/cybercoder-naj/sliding-bar
android android-library android-ui compose jetpack-compose kotlin kotlin-android kotlin-compose
Last synced: 4 months ago
JSON representation
Slider Composable for the Jetpack Compose UI-toolkit for Android Application Development
- Host: GitHub
- URL: https://github.com/cybercoder-naj/sliding-bar
- Owner: cybercoder-naj
- License: mit
- Created: 2022-05-29T10:29:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-30T14:40:05.000Z (over 2 years ago)
- Last Synced: 2023-03-07T11:37:00.800Z (almost 2 years ago)
- Topics: android, android-library, android-ui, compose, jetpack-compose, kotlin, kotlin-android, kotlin-compose
- Language: Kotlin
- Homepage:
- Size: 465 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# sliding-bar
[View Releases and Changelog](https://github.com/cybercoder-naj/sliding-bar/releases)
[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs)
[![JitPack Build](https://jitpack.io/v/cybercoder-naj/sliding-bar.svg)](https://jitpack.io/#cybercoder-naj/sliding-bar)Slider Composable for the Jetpack Compose UI-toolkit for Android Application Development
## Demo
## Installation
Add JitPack url to your `settings.gradle` file
```bash
repositories {
maven { url 'https://jitpack.io' }
}
```And the dependency in your app `build.gradle` file
```bash
dependencies {
implementation "com.github.cybercoder-naj:sliding-bar:$version"
}
```## Usage/Examples
Remember to add the `@ExperimentalComposeUiApi` annotation to your class/function.
```kotlin
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](CONTRIBUTING.md) for ways to get started.
## License
[MIT](LICENSE)