PersianDatePicker class

Constructors

PersianDatePicker({@required TextEditingController controller, dynamic onChange(String oldText, String newText), String datetime, String gregorianDatetime, String finishDatetime, String gregorianFinishDatetime, String outputFormat = 'YYYY/MM/DD', String rangeSeparator = ' # ', bool farsiDigits = false, double datePickerHeight = 320, String fontFamily = 'Roboto', bool rangeDatePicker = false, bool showGregorianDays = true, Duration yearSelectionAnimationDuration = const Duration(milliseconds: 700), Curve yearSelectionAnimationCurve = Curves.elasticOut, Duration monthSelectionAnimationDuration = const Duration(milliseconds: 700), Curve monthSelectionAnimationCurve = Curves.elasticOut, Color yearSelectionBackgroundColor = Colors.white, TextStyle yearSelectionTextStyle = const TextStyle(fontSize: 16, color: Colors.black), Color yearSelectionHighlightBackgroundColor = const Color(0xffFAF4E1), TextStyle yearSelectionHighlightTextStyle = const TextStyle(fontSize: 16, color: Color(0xff734505)), Color monthSelectionBackgroundColor = Colors.white, TextStyle monthSelectionTextStyle = const TextStyle(fontSize: 16, color: Colors.black), Color monthSelectionHighlightBackgroundColor = const Color(0xffFAF4E1), TextStyle monthSelectionHighlightTextStyle = const TextStyle(fontSize: 16, color: Color(0xff734505)), Color weekCaptionsBackgroundColor = Colors.blue, TextStyle weekCaptionsTextStyle = const TextStyle(color: Colors.white, fontSize: 16), Color headerBackgroundColor = Colors.white, TextStyle headerTextStyle = const TextStyle(color: Colors.black, fontSize: 18), Color daysBackgroundColor = Colors.transparent, TextStyle daysTextStyle = const TextStyle(color: Colors.black87, fontSize: 16), Color currentDayBackgroundColor = const Color(0xffDDE8CA), TextStyle currentDayTextStyle = const TextStyle(color: Colors.black, fontSize: 16), Color selectedDayBackgroundColor = const Color(0xffE9ECF5), TextStyle selectedDayTextStyle = const TextStyle(color: Colors.black87, fontSize: 16), Color headerTodayBackgroundColor = const Color(0xffE0E8D3), Color disabledDayBackgroundColor = const Color(0xffEEEEEE), TextStyle disabledDayTextStyle = const TextStyle(color: Color(0xffA0A0A0), fontSize: 16), String headerTodayCaption = 'امروز', TextStyle headerTodayTextStyle = const TextStyle(fontSize: 19), Icon headerTodayIcon = const Icon(Icons.date_range, color: Colors.green, size: 20), Color selectedDayBorderColor = const Color(0xff9EA8F0), Color selectedDaysInnerBorderColor = const Color(0xffE8D5F5), Color currentDayBorderColor = Colors.green, Color daysBorderColor = const Color(0xffEDEDED), double daysBorderWidth = 0.5, List<String> weekCaptions = const ['ش', 'ی', 'د', 'س', 'چ', 'پ', 'ج'], Duration changePageDuration = const Duration(milliseconds: 500), TextStyle gregorianDaysTextStyle = const TextStyle(fontSize: 11, color: Color(0xFFC5C5C5)), GregorianDaysLocation gregorianDaysLocation = GregorianDaysLocation.bottomLeft, Color rangeFirstDaySelectedBackgroundColor = const Color(0xffC9ECF5), Color rangeLastDaySelectedBackgroundColor = const Color(0xffC9ECF5), Color selectionGradientColor = const Color(0x44333333), String maxDatetime, String minDatetime, Duration maxSpan, Duration minSpan, double dayBlockRadius})

Properties

changePageDuration Duration
read / write
controller TextEditingController
final
currentDayBackgroundColor Color
read / write
currentDayBorderColor Color
read / write
currentDayTextStyle TextStyle
read / write
datePickerHeight double
read / write
datetime String
read / write
dayBlockRadius double
read / write
daysBackgroundColor Color
read / write
daysBorderColor Color
read / write
daysBorderWidth double
read / write
daysTextStyle TextStyle
read / write
disabledDayBackgroundColor Color
read / write
disabledDayTextStyle TextStyle
read / write
farsiDigits bool
read / write
finishDatetime String
read / write
fontFamily String
read / write
gregorianDatetime String
read / write
gregorianDaysLocation GregorianDaysLocation
read / write
gregorianDaysTextStyle TextStyle
read / write
gregorianFinishDatetime String
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
headerBackgroundColor Color
read / write
headerTextStyle TextStyle
read / write
headerTodayBackgroundColor Color
read / write
headerTodayCaption String
read / write
headerTodayIcon Icon
read / write
headerTodayTextStyle TextStyle
read / write
maxDatetime String
حداکثر تاریخی که میتوان در دیت پیکر انتخاب کرد
read / write
maxSpan Duration
حداکثر فاصله ای که تاریخ شروع و تاریخ پایان میتوانند نسبت به یکدیگر داشته باشند
read / write
minDatetime String
حداقل تاریخی که میتوان در دیت پیکر انتخاب کرد
read / write
minSpan Duration
حداقل فاصله ای که تاریخ شروع و تاریخ پایان میتوانند نسبت به یکدیگر داشته باشند
read / write
monthSelectionAnimationCurve Curve
read / write
monthSelectionAnimationDuration Duration
read / write
monthSelectionBackgroundColor Color
read / write
monthSelectionHighlightBackgroundColor Color
read / write
monthSelectionHighlightTextStyle TextStyle
read / write
monthSelectionTextStyle TextStyle
read / write
onChange → dynamic Function(String oldText, String newText)
final
outputFormat String
read / write
rangeDatePicker bool
read / write
rangeFirstDaySelectedBackgroundColor Color
read / write
rangeLastDaySelectedBackgroundColor Color
read / write
rangeSeparator String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectedDayBackgroundColor Color
read / write
selectedDayBorderColor Color
read / write
selectedDaysInnerBorderColor Color
read / write
selectedDayTextStyle TextStyle
read / write
selectionGradientColor Color
read / write
showGregorianDays bool
read / write
weekCaptions List<String>
read / write
weekCaptionsBackgroundColor Color
read / write
weekCaptionsTextStyle TextStyle
read / write
yearSelectionAnimationCurve Curve
read / write
yearSelectionAnimationDuration Duration
read / write
yearSelectionBackgroundColor Color
read / write
yearSelectionHighlightBackgroundColor Color
read / write
yearSelectionHighlightTextStyle TextStyle
read / write
yearSelectionTextStyle TextStyle
read / write

Methods

init() PersianDatePickerWidget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited