persian-datetime-picker
a persian (farsi,shamsi) datetime picker for flutter, inspired by material datetime picker.
you can pick date / range date / time / date and time.
screenshots
usage
add it to your pubspec.yaml file:
dependencies:
persian_datetime_picker: version
in your library add the following import:
import 'package:persian_datetime_picker/persian_datetime_picker.dart';
here is an example how to use:
jalali picked = await showpersiandatepicker(
context: context,
initialdate: jalali.now(),
firstdate: jalali(1385, 8),
lastdate: jalali(1450, 9),
);
var label = picked.formatfulldate();
var picked = await showtimepicker(
context: context,
initialtime: timeofday.now(),
);
var label = picked.persianformat(context);
Comments are closed.