Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 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 (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-31T20:19:38.000Z (7 months ago)
- Last Synced: 2024-10-27T22:17:47.032Z (2 months ago)
- Topics: android, dart, datepicker, flutter, ios, persian, persian-calendar, picker
- Language: Dart
- Homepage:
- Size: 486 KB
- Stars: 7
- 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
[![pub package](https://img.shields.io/pub/v/persian_linear_date_picker.svg)](https://pub.dartlang.org/packages/persian_linear_date_picker)
[![pub package](https://img.shields.io/badge/platform-flutter-blue.svg)](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,
),
```