ir_datetime_picker 1.0.2 copy "ir_datetime_picker: ^1.0.2" to clipboard
ir_datetime_picker: ^1.0.2 copied to clipboard

outdated

Iranian datetime picker

Iranian (persian,farsi,shamsi,jalali) datetime picker for flutter with cupertino style. #

Version Platform

Usage #

Step1: add dependency to your pubspec.yaml:


dependencies:
  ir_datetime_picker: version

Step2: import library:


import 'package:ir_datetime_picker.dart/ir_datetime_picker.dart';

Step3: check exmaples to use:


// use top level function showIRDatePickerRoute like below:

ElevatedButton(
     child: const Text("PickDate"),
     onPressed: () async {
       Jalali? selectedDate = await showIRDatePickerRoute(context);
       if (selectedDate != null) {
         print("${selectedDate.year}/${selectedDate.month}/${selectedDate.day}");
       } else {
         print("No date was selected");
       }
     },
)

18
likes
0
points
214
downloads

Publisher

unverified uploader

Weekly Downloads

Iranian datetime picker

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, responsive_sizer, shamsi_date

More

Packages that depend on ir_datetime_picker