Iranian date & time picker
Iranian (persian,farsi,shamsi,jalali) datetime picker with cupertino style and responsive ui.
Screen:
Usage
Step1: add dependency to your pubspec.yaml:
dependencies:
ir_datetime_picker: version
Step2: import library:
import 'package:ir_datetime_picker/ir_datetime_picker.dart';
Step3: check exmaples to use:
// use top level function showIRDatePickerRoute like below:
ElevatedButton(
child: const Text("PickDate"),
onPressed: () async {
Jalali? datePicked = await showIRDatePickerRoute(context);
if (datePicked != null) {
setState(() {
_date = "${datePicked.year}/${datePicked.month}/${datePicked.month}";
});
}
},
)