jalali Table Calendar
if you have any issue or any suggestion you could contact a Calendar , DatePicker and Date Converter For Persian Date(Jalali/Shamsi date) with holidays
Modified and Completed Version of jalali_calendar package
Usage
Import this line in Flutter pubspec.yaml
To Use Calendar Or DatePicker , Import this line to your dart file
To Use date Converter , Import this line to your dart file
After import library, to show the calendar you can use jalaliCalendar or jalaliCalendarPicker() method , on the constructor context
is important
This sample make a Calendar Widget
This sample return the selected date as Jalali(شمسی)
if you want to return the selected date to Gregorian, on the constructor set the convertToGregorian to true
This sample return the selected date as Gregorian(میلادی)
Those parameters using To Show the TimePicker
Parameter | operation |
---|---|
showTimePicker | To show TimePicker set it true |
hore24Format | To return time in 24 hours format set it true |
initialTime | To set initial time use it with TimeOfDay |
To use datePicker you can follow this sample
To show DatePicker those parameters is required
For set, default date use those parameters
Full datePicker Sample
To use date Converter you can follow this sample
first import this library to your code
Full Date Converter Sample
those formats are supported in date converter
Format | operation | Format | operation |
---|---|---|---|
yyyy | return year with Four number | hh | hours with two number |
yy | return year with two number | h | hours with one number |
mm | return month with two number | HH | hours with two number in 24 |
m | return month with one number | H | hours with one number in 24 |
MM | the month name with full letter | nn | minut with two number |
M | the month name with short form | n | minut with one number |
dd | the day with two number | ss | Second with two number |
d | the day with one number | s | Second with one number |
w | week number | SS | show milliSecond |
DD | the day name with full letter | S | show milliSecond |
D | the day name with short form | uuu | show microsecond |
am | Show time in short | u | show microsecond |
AM | Show full time | . | . |
bug report and suggestions
if you have any issue or any suggestion you could contact a.zare.developer@gmail.com or j.zobeidi89@gmail.com author of jalali_calendar package