Persian Date Range Picker

Date pickers let users select range of dates, written in Jetpack compose

Inspired by https://material.io/components/date-pickers

Date pickers let users select range of dates. They should be suitable for the context in which they appear.

  • Dialogs on mobile

Mobile date range picker

Mobile date range pickers allow selection of a range of dates. They cover the entire screen.

Common use cases include:

  • Booking a flight
  • Reserving a hotel

date-picker_1

  • Title
  • Selected date range
  • Month and year label
  • Current date
  • Start date
  • Selected range
  • End date

Download

repositories {
  maven("https://jitpack.io")
}
implementation("com.github.alireza-milani:persian-date-range-picker:0.0.1")

Usage

For a date picker with no customization

DateRangePicker(
  modifier = Modifier,
  onCloseClick = { 
    // Do something when close button is selected
  },
  onConfirmClick = { startDate, endDate ->
    // Do something with selected startDate and endDate
  }
)

License

Copyright 2022 Alireza Milani

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.

GitHub

View Github