TimeRangePicker created in Jetpack Compose.
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.kako351:Compose-TimeRangePicker:Tag'
}
TimeRangePicker { startHour, startMinutes, endHour, endMinutes ->
// do something
}
or
TimeRangePicker { startTime, endTime ->
// do something
}
TimeRangePicker (
startTime = Time(10, 0),
endTime = Time(20, 0),
rangeBarStyle = RangeBarStyle(color = MaterialTheme.colorScheme.primary)
) { startTime, endTime ->
// do something
}