feat : persian calendar and date picker
This commit is contained in:
@@ -70,7 +70,19 @@ class LocationDetailsPage extends GetView<LocationDetailsLogic> {
|
||||
Expanded(
|
||||
child: ROutlinedElevatedIcon(
|
||||
icon: FaIcon(FontAwesomeIcons.calendar),
|
||||
onPressed: () {},
|
||||
onPressed:() async {
|
||||
|
||||
Jalali? picked = await showPersianDatePicker(
|
||||
context: context,
|
||||
initialDate: Jalali.now(),
|
||||
firstDate: Jalali(1385, 8),
|
||||
lastDate: Jalali(1450, 9),
|
||||
|
||||
initialEntryMode:
|
||||
PersianDatePickerEntryMode.calendarOnly,
|
||||
initialDatePickerMode: PersianDatePickerMode.day,
|
||||
);
|
||||
},
|
||||
text: 'از تاریخ',
|
||||
textStyle: AppFonts.yekan16.copyWith(
|
||||
color: AppColor.blueNormal,
|
||||
@@ -81,16 +93,17 @@ class LocationDetailsPage extends GetView<LocationDetailsLogic> {
|
||||
child: ROutlinedElevatedIcon(
|
||||
icon: FaIcon(FontAwesomeIcons.calendar),
|
||||
onPressed: () async {
|
||||
|
||||
Jalali? picked = await showPersianDatePicker(
|
||||
context: context,
|
||||
initialDate: Jalali.now(),
|
||||
firstDate: Jalali(1385, 8),
|
||||
lastDate: Jalali(1450, 9),
|
||||
|
||||
initialEntryMode:
|
||||
PersianDatePickerEntryMode.calendarOnly,
|
||||
initialDatePickerMode: PersianDatePickerMode.day,
|
||||
);
|
||||
var label = picked?.formatFullDate();
|
||||
},
|
||||
text: 'تا تاریخ',
|
||||
textStyle: AppFonts.yekan16.copyWith(
|
||||
|
||||
Reference in New Issue
Block a user