persian_datetimepickers 1.0.2+1 copy "persian_datetimepickers: ^1.0.2+1" to clipboard
persian_datetimepickers: ^1.0.2+1 copied to clipboard

outdated

A valuable and straightforward package that supports numeric Jalali(Farsi | Persian) and the Gregorian date and time pickers.

Persian and gregorian numeric 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.2

2. Import package:

import 'package:persian_datetimepickers/persian_datetimepickers.dart';

3. Call the pickers where ever you want:

          onTap: () async {
		// Time picker
            final TimeOfDay? time = await showPersianTimePicker(
              context: context,
            );

            setState(() {
              _pickedTime = time;
            });
			
			
		// Date picker
            final DateTime? date = await showPersianDatePicker(
              context: context,
              color: Colors.red,
            );

            setState(() {
              _pickedDate = date;
            });
          },
		  
19
likes
0
pub points
74%
popularity

Publisher

verified publishergabrimatic.info

A valuable and straightforward package that supports numeric Jalali(Farsi | Persian) and the Gregorian date and time pickers.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, numberpicker, shamsi_date

More

Packages that depend on persian_datetimepickers