ir_datetime_picker library

Export main libraries for development. You just need to import this library and use all the features of this package.

Classes

Date
Super class of Jalali and Georgian classes
DateFormatter
super class for Jalali and Gregorian Date formatter
Gregorian
Gregorian (Miladi or Milaadi) date class
GregorianFormatter
Gregorian date formatter class
IRDatePicker
You can use IRDatePicker to design your own widgets.
IRDatePickerResponsiveDialog
IRDatePickerResponsiveDialog is a ready responsive dialog widget that used with showIRDatePickerDialog top function.
IRDatePickerResponsiveRoute
IRDatePickerResponsiveRoute is a ready responsive route widget that used with showIRDatePickerRoute top function.
IRTimeModel
IRTimeModel use for working with time. in fact in IRTimePicker when you choose your time you will take a IRTimeModel? object.
IRTimePicker
You can use IRTimePicker to design your own widgets.
IRTimePickerResponsiveDialog
IRTimePickerResponsiveDialog is a ready responsive dialog widget that used with showIRTimePickerDialog top function.
Jalali
Jalali (Jalaali, Shamsi or Persian) Date class
JalaliFormatter
Jalali date formatter class

Extensions

DateTimeExtensions
extension methods to easily convert DateTime to Jalali and Gregorian

Functions

showIRDatePickerDialog(BuildContext context, {Jalali? initialDate, int? startYear, int? endYear, bool? enableTodayButton, String? todayButtonText}) Future<Jalali?>
showIRDatePickerDialog show a dialog with IRDatePickerResponsiveDialog widget.
showIRDatePickerRoute(BuildContext context, {Jalali? initialDate, int? startYear, int? endYear, bool? enableTodayButton, String? todayButtonText}) Future<Jalali?>
showIRDatePickerRoute show a dialog with IRDatePickerResponsiveRoute widget.
showIRTimePickerDialog(BuildContext context) Future<IRTimeModel?>
showIRTimePickerDialog show a dialog with IRTimePickerResponsiveDialog widget.

Typedefs

IRDatePickerOnSelected = void Function(Jalali jalaliDate)
IRDatePickerOnSelected is a callback function that will call when user change cupertino pickers.
IRTimePickerOnSelected = void Function(IRTimeModel time)
IRTimePickerOnSelected is a callback function that will call when user change cupertino pickers.

Exceptions / Errors

DateException
date exception