alt_persian_date_picker

Creator: coderz1093

Last updated:

0 purchases

alt_persian_date_picker Image
alt_persian_date_picker Images

Languages

Categories

Add to Cart

Description:

alt persian date picker

A persian (farsi, shamsi) date picker for flutter, inspired by material datetime picker. #
A Flutter persian date picker inspired by material datetime picker and based on shamsi_date.
You can pick date / range date / Month / Year .
Screenshots #



Date Picker
Editable Date Picker
Ranged Date Picker
Seprate Header Date Picker
Month Picker
Year Picker
Timeline Picker














Usage #
Add it to your pubspec.yaml file:

dependencies:

alt_persian_datetime_picker: version

copied to clipboard
In your library add the following import:

import 'package:alt_persian_date_picker/alt_persian_date_picker.dart';

copied to clipboard
Here is an example how to use:

TextButton(
onPressed: () {
DatePicker.showDatePicker(
context,
PickerEnum.month,
theme: DatePickerTheme(
noneSelectedItemColor: Colors.white,
selectedItemColor: Colors.greenAccent,
disableItemColor: Colors.redAccent),
pickerModel: MonthPickerModel(
startSelectedInitDate: 4,
disables: [1, 5],
),
onConfirm: (time) {
print("Selected month is $time");
_showToast(time);
},
);
},
child: Text("ماه"),
),
copied to clipboard
Date time picker parameters and events #



Parameter
Type
Default
Description




type
PickerEnum
Has 4 values( month , year , date , rangedate )



headerType
HeaderType
Has 3 values( seprated , mix , writable )



disable
String or List<String>
null
Disable dates


theme
DatePickerTheme

You can add your style to each part of date picker


onConfirm
Function(String)

This event return a String date



##Pull request and feedback are always appreciated.
###Contact me with [email protected] .

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.