Skip to content

kako351/Compose-TimeRangePicker

Repository files navigation

Compose-TimeRangePicker

TimeRangePicker created in Jetpack Compose.

Get Started

Step1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

Step2. Add the dependency

dependencies {
    implementation 'com.github.kako351:Compose-TimeRangePicker:Tag'
}

Usage

TimeRangePicker { startHour, startMinutes, endHour, endMinutes ->
    // do something
}

or

TimeRangePicker { startTime, endTime ->
    // do something
}

Customization

TimeRangePicker (
    startTime = Time(10, 0),
    endTime = Time(20, 0),
    rangeBarStyle = RangeBarStyle(color = MaterialTheme.colorScheme.primary)
) { startTime, endTime ->
    // do something
}

License

here!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages