Skip to content

hamid97m/HeroDatePicker

Repository files navigation

HeroDatePicker

Banner

Download

Setup

Configure the repositories

HeroDatePicker is available through the JitPack repository. You can declare this repository in your build script as follows:

Kotlin DSL
repositories { maven { url = uri("https://jitpack.io") } }
Groovy DSL
repositories { maven { url 'https://jitpack.io' } }

Add the dependency

After repository configuration, add a dependency on HeroDatePicker to your module's build.gradle file:

Kotlin DSL
dependencies { implementation("com.github.hamid97m:herodatepicker:1.0.0") }
Groovy DSL
dependencies { implementation 'com.github.hamid97m:herodatepicker:1.0.0' }

Usage

HeroDatePicker(Modifier.fillMaxWidth()) { selectedDate -> val (year, month, day) = selectedDate println("Selected Date: $year/$month/$day") }

In addition, there is a sample app available in the project's sample directory that demonstrates how to use the library.

Screenshot

License

Copyright 2023 Hamid Mahmoodi Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.