hebrew_date_picker library

A Material-style date picker that shows Hebrew (Jewish) dates alongside Gregorian ones.

Classes

HebrewDateFormField
A read-only text field that opens showHebrewDatePicker when tapped and shows the picked date.
HebrewDatePicker
Date picker styled like the Material one, with the Hebrew date shown in every day cell, the Hebrew months in the month title and the full Hebrew date of the selected day.
HebrewDateRangeFormField
A read-only text field that opens showHebrewDateRangePicker when tapped and shows the picked range.
HebrewDateRangePicker
Date range picker styled like the Material one, with the Hebrew date shown in every day cell, the Hebrew months in the month title and the full Hebrew dates of the selected range.
HebrewDay
A day of the date pickers' calendar, as passed to a DayDecorationBuilder.

Enums

CalendarMode
Which calendar the HebrewDatePicker shows.
YomTovLocation
Where the Yamim Tovim are kept, which decides the days that are Yom Tov.

Functions

showHebrewDatePicker({required BuildContext context, required DateTime initialDate, required DateTime firstDate, required DateTime lastDate, SelectableDayPredicate? selectableDayPredicate, CalendarMode calendarMode = CalendarMode.both, CalendarMode? dayMode, DatePickerMode initialDatePickerMode = DatePickerMode.day, bool showTodayButton = false, DayDecorationBuilder? dayDecorationBuilder, YomTovLocation yomTovLocation = YomTovLocation.israel, Decoration? holidayDecoration, String? locale, String? helpText, String? cancelText, String? confirmText, String? todayText, Color? primaryColor, Color? secondaryTextColor, bool barrierDismissible = true, bool useRootNavigator = true}) → Future<DateTime?>
Shows a Material-style dialog with a HebrewDatePicker.
showHebrewDateRangePicker({required BuildContext context, DateTimeRange<DateTime>? initialDateRange, required DateTime firstDate, required DateTime lastDate, SelectableDayPredicate? selectableDayPredicate, CalendarMode calendarMode = CalendarMode.both, CalendarMode? dayMode, DatePickerMode initialDatePickerMode = DatePickerMode.day, bool showTodayButton = false, DayDecorationBuilder? dayDecorationBuilder, YomTovLocation yomTovLocation = YomTovLocation.israel, Decoration? holidayDecoration, String? locale, String? helpText, String? cancelText, String? confirmText, String? todayText, Color? primaryColor, Color? secondaryTextColor, bool barrierDismissible = true, bool useRootNavigator = true}) → Future<DateTimeRange<DateTime>?>
Shows a Material-style dialog with a HebrewDateRangePicker.

Typedefs

DayDecorationBuilder = Decoration? Function(HebrewDay day)
Returns the decoration painted behind day in the date pickers, e.g. a BoxDecoration with a colored border, or null to leave the day unmarked.
DayMode = CalendarMode
The old name of CalendarMode.
HebrewDateFieldFormatter = String Function(BuildContext context, DateTime date)
Formats a date for the text of a HebrewDateFormField or a HebrewDateRangeFormField.