persian_datetime_picker 2.1.1 copy "persian_datetime_picker: ^2.1.1" to clipboard
persian_datetime_picker: ^2.1.1 copied to clipboard

outdated

A persian (farsi,shamsi) datetime picker for flutter, inspired by material datetime picker.

A persian (farsi,shamsi) datetime picker for flutter, inspired by material datetime picker. #

pub package

A Flutter persian datetime picker inspired by material datetime picker and based on shamsi_date.

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);

##Pull request and feedback are always appreciated. ###Contact me with mem.amir.m@gmail.com.

238
likes
0
pub points
93%
popularity

Publisher

unverified uploader

A persian (farsi,shamsi) datetime picker for flutter, inspired by material datetime picker.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on persian_datetime_picker