PickTime is a highly customizable and smooth time wheel picker library for Jetpack Compose.
It updates the value on every scroll and provides a super fluid user experience! 🚀
1. Add JitPack to settings.gradle.kts
:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
// add this line of code 👇
maven { url = uri("https://jitpack.io") }
}
}
2. Add the dependency to build.gradle.kts
:
implementation("com.github.anhaki:PickTime-Compose:1.1.2")
Usage of the wheel pickers (Code and Preview)
-
Easy to Use
Quickly implement hour, minute, second, and date pickers with just a few lines of code. -
Highly Customizable
- Fully customize text color, size, font family, and font weight using
PickTimeTextStyle
. - Adjust spacing between elements with
verticalSpace
andhorizontalSpace
. - Customize focus indicators with
PickTimeFocusIndicator
. - Switch between 24-hour and 12-hour formats using
timeFormat
(TimeFormat.HOUR_12
/TimeFormat.HOUR_24
). - Enable or disable looping (infinite scrolling) with the
isLooping
parameter.
- Fully customize text color, size, font family, and font weight using
-
Modern and Responsive Design
- Easily style the picker for infinite possibility, including custom container backgrounds and focus indicator shapes.
-
Flexible for Different Use Cases
- Pick only hour and minute (
PickHourMinute
). - Pick hour, minute, and second (
PickHourMinuteSecond
). - Pick a full date (
PickDate
) with optional (monthList
) that can be used if different language is needed and (yearRange
) for custom year range.
- Pick only hour and minute (
Example of use of the wheel pickers (Code and Preview)
This project is licensed under the Apache License 2.0.
Made with ❤️ by anhaki