jalali_calendar library

Classes

DatePicker
DayPicker
Displays the days of a given month and allows choosing a day.
MonthPicker
A scrollable list of months to allow picking a month.
PersianDate
YearPicker
A scrollable list of years to allow picking a year.

Enums

DatePickerMode
Initial display mode of the date picker dialog.

Constants

am → const String
AM → const String
d → const String
D → const String
dd → const String
DD → const String
h → const String
H → const String
hh → const String
HH → const String
leapYearMonths → const List<int>
m → const String
M → const String
mm → const String
MM → const String
n → const String
nn → const String
s → const String
S → const String
ss → const String
SSS → const String
u → const String
uuu → const String
w → const String
yy → const String
yyyy → const String

Functions

jalaliCalendarPicker({required BuildContext context, SelectableDayPredicate? selectableDayPredicate, DatePickerMode initialDatePickerMode = DatePickerMode.day, String? selectedFormat, bool? toArray, Locale? locale, TextDirection textDirection = TextDirection.rtl, bool convertToGregorian = false, bool showTimePicker = false, bool hore24Format = false, TimeOfDay? initialTime}) Future<String?>
Shows a dialog containing a material design date picker.

Typedefs

DateChangedCallback = dynamic Function(int? year, int? month, int? date)
SelectableDayPredicate = bool Function(DateTime day)
Signature for predicating dates for enabled date selections.