https://github.com/pouyamaroufi/persian-linear-date-picker
Flutter Package | Persian and Gregorian Linear Date Picker
https://github.com/pouyamaroufi/persian-linear-date-picker
android dart datepicker flutter ios persian persian-calendar picker
Last synced: 2 months ago
JSON representation
Flutter Package | Persian and Gregorian Linear Date Picker
- Host: GitHub
- URL: https://github.com/pouyamaroufi/persian-linear-date-picker
- Owner: pouyamaroufi
- License: mit
- Created: 2023-01-16T22:18:23.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-31T20:19:38.000Z (about 1 year ago)
- Last Synced: 2025-04-18T04:55:35.683Z (3 months ago)
- Topics: android, dart, datepicker, flutter, ios, persian, persian-calendar, picker
- Language: Dart
- Homepage:
- Size: 486 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://pub.dartlang.org/packages/persian_linear_date_picker)
[](https://github.com/pouyamaroufi/persian_linear_date_picker)Shamsi Linear Date Picker for Persian language and culture.
![]()
## Features
* Linear Date Picker.
* Customizable Labels.
* Convert PersianDate to Gregorian numbers.
* Can be used in Dart and Flutter projects.
* Supports all platforms (Android, iOS, Windows, Linux, Mac).
* Include Example Project.## Getting Started
In your `pubspec.yaml` file add:
```dart
dependencies:
persian_linear_date_picker: any
```## Usage
Import the package:
```dart
import 'package:persian_linear_date_picker/persian_linear_date_picker.dart';
```Then, use the extension methods:
```dart
PersianLinearDatePicker(
endDate: '1405/12/29',
initialDate: "1401/10/26",
startDate: "1300/01/01",
dateChangeListener: (String selectedDate) {
print(selectedDate);
},
showMonthName: true,
columnWidth: 90,
labelStyle:
const TextStyle(fontFamily: 'IS_B', color: Colors.blue),
selectedRowStyle: const TextStyle(fontFamily: 'IS_B'),
unselectedRowStyle: const TextStyle(fontFamily: 'IS_UL'),
isPersian: true,
),
``````dart
PersianLinearDatePicker(
yearText: 'Year',
monthText: 'Month',
dayText: 'Day',
endDate: '2025/11/20',
initialDate: "2023/05/17",
startDate: "1980/04/10",
dateChangeListener: (String selectedDate) {
print(selectedDate);
},
showMonthName: true,
columnWidth: 90,
labelStyle:
const TextStyle(fontFamily: 'DIN', color: Colors.blue),
selectedRowStyle: const TextStyle(
fontFamily: 'DIN', fontWeight: FontWeight.bold),
unselectedRowStyle: const TextStyle(fontFamily: 'DIN'),
isPersian: false,
),
```