Shamsi Linear Date Picker for Persian language and culture.
- 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.
In your pubspec.yaml
file add:
dependencies:
persian_linear_date_picker: any
Import the package:
import 'package:persian_linear_date_picker/persian_linear_date_picker.dart';
Then, use the extension methods:
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,
),
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,
),