persian_datetimepickers 1.0.1 persian_datetimepickers: ^1.0.1 copied to clipboard
A valuable and straightforward package that supports Jalali(Farsi | Persian) and the Gregorian date and time pickers.
Persian and gregorian time and date pickers in Flutter. #
LIGHTWEIGHT - SIMPLE
How to use it?
1. Add the package to pubspec.yaml dependency:
dependencies:
persian_datetimepickers: ^1.0.1
2. Import package:
import 'package:persian_datetimepickers/persian_datetimepickers.dart';
3. Call the pickers where ever you want:
onTap: () async {
// Time picker
final time = await showPersianTimePicker(
context: context,
);
setState(() {
_pickedTime = time;
});
// Date picker
final date = await showPersianDatePicker(
context: context,
);
setState(() {
_pickedDate = date;
});
},