persian_datetime_picker library

Classes

CupertinoTimerPicker
A countdown timer picker in iOS style.
DariCupertinoLocalizations
DariMaterialLocalizations
Date
Super class of Jalali and Georgian classes
DateFormatter
super class for Jalali and Gregorian Date formatter
DatePickerDialog
A Material-style date picker dialog.
DefaultPersianCupertinoLocalizations
DefaultPersianMaterialLocalizations
Gregorian
Gregorian (Miladi or Milaadi) date class
GregorianFormatter
Gregorian date formatter class
Jalali
Jalali (Jalaali, Shamsi or Persian) Date class
JalaliFormatter
Jalali date formatter class
JalaliRange
Encapsulates a start and end Jalali that represent the range of dates.
PashtoCupertinoLocalizations
PashtoMaterialLocalizations
PersianCalendarDatePicker
Displays a grid of days for a given month and allows the user to select a date.
PersianCupertinoDatePicker
A date picker widget in iOS style.
PersianCupertinoLocalizations
PersianDateRangePickerDialog
A Material-style date range picker dialog.
PersianDateUtils
Utility functions for working with dates.
PersianInputDatePickerFormField
A TextFormField configured to accept and validate a date entered by a user.
PersianMaterialLocalizations
RestorableJalali
A RestorableValue that knows how to save and restore Jalali.
RestorableJalaliN
A RestorableValue that knows how to save and restore Jalali that is nullable.
SoraniCupertinoLocalizations
SoraniMaterialLocalizations
YearPicker
A scrollable grid of years to allow picking a year.

Enums

CupertinoTimerPickerMode
Different modes of CupertinoTimerPicker.
PersianCupertinoDatePickerMode
Different display modes of PersianCupertinoDatePicker.
PersianDatePickerEntryMode
Mode of date entry method for the date picker dialog.
PersianDatePickerMode
Initial display of a calendar date picker.

Extensions

DateTimeExt on DateTime
DateTimeExtensions on DateTime
extension methods to easily convert DateTime to Jalali and Gregorian
JalaliExt on Jalali

Functions

jalaliStringToGregorianString(String? jalaliDateString, String seprator) String?
parseCompactJalaliDate(String? inputString) Jalali?
showPersianDatePicker({required BuildContext context, Jalali? initialDate, required Jalali firstDate, required Jalali lastDate, Jalali? currentDate, PersianDatePickerEntryMode initialEntryMode = PersianDatePickerEntryMode.calendar, PersianSelectableDayPredicate? selectableDayPredicate, String? helpText, String? cancelText, String? confirmText, Locale? locale, bool barrierDismissible = true, Color? barrierColor, String? barrierLabel, bool useRootNavigator = true, RouteSettings? routeSettings, TextDirection? textDirection, TransitionBuilder? builder, PersianDatePickerMode initialDatePickerMode = PersianDatePickerMode.day, String? errorFormatText, String? errorInvalidText, String? fieldHintText, String? fieldLabelText, TextInputType? keyboardType, Offset? anchorPoint, ValueChanged<PersianDatePickerEntryMode>? onDatePickerModeChange, Icon? switchToInputEntryModeIcon, Icon? switchToCalendarEntryModeIcon}) Future<Jalali?>
Shows a dialog containing a Material Design date picker.
showPersianDateRangePicker({required BuildContext context, JalaliRange? initialDateRange, required Jalali firstDate, required Jalali lastDate, Jalali? currentDate, PersianDatePickerEntryMode initialEntryMode = PersianDatePickerEntryMode.calendar, String? helpText, String? cancelText, String? confirmText, String? saveText, String? errorFormatText, String? errorInvalidText, String? errorInvalidRangeText, String? fieldStartHintText, String? fieldEndHintText, String? fieldStartLabelText, String? fieldEndLabelText, Locale? locale, bool barrierDismissible = true, Color? barrierColor, String? barrierLabel, bool useRootNavigator = true, RouteSettings? routeSettings, TextDirection? textDirection, TransitionBuilder? builder, Offset? anchorPoint, TextInputType keyboardType = TextInputType.datetime, Icon? switchToInputEntryModeIcon, Icon? switchToCalendarEntryModeIcon, required Jalali initialDate}) Future<JalaliRange?>
Shows a full screen modal dialog containing a Material Design date range picker.

Typedefs

PersianSelectableDayPredicate = bool Function(Jalali day)
Signature for predicating dates for enabled date selections.

Exceptions / Errors

DateException
date exception