solar_datepicker library Null safety

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
Jalali
Jalali (Jalaali, Shamsi or Persian) Date class
JalaliFormatter
Jalali date formatter class
SolarDate
SolarDayPicker
Displays the days of a given month and allows choosing a day.
SolarMonthPicker
A scrollable list of months to allow picking a month.
SolarYearPicker
A scrollable list of years to allow picking a year.

Extensions

DateTimeExtensions
extension methods to easily convert DateTime to Jalali and Gregorian

Constants

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

Functions

showSolarDatePicker({required BuildContext context, required DateTime initialDate, required DateTime firstDate, required DateTime lastDate, bool isPersian = true, SelectableDayPredicate? selectableDayPredicate, SolarDatePickerMode initialDatePickerMode = SolarDatePickerMode.day, Locale? locale, TextDirection? textDirection, TransitionBuilder? builder, bool useRootNavigator = true, RouteSettings? routeSettings}) Future<DateTime?>
Shows a dialog containing a material design date picker.

Enums

SolarDatePickerMode
Initial display mode of the date picker dialog.

Typedefs

SelectableDayPredicate = bool Function(DateTime day)
Signature for predicating dates for enabled date selections.

Exceptions / Errors

DateException
date exception