Material Design를 영감으로 한 페르시아어(파르시어, 샤미, 자라리) 날짜 및 시간 선택기 기능을 제공하는 플러터 패키지입니다. 자라리 달력 시스템에서 날짜와 시간을 선택할 수 있게 해주며, 페르시아어 사용자를 대상으로 하는 애플리케이션에 적합합니다. 안드로이드, iOS, 웹, 맥OS, 윈도우, 리눅스 등 주요 플랫폼을 모두 지원하여 장치 간 일관된 UX를 보장합니다. 플러터의 UI 프레임워크와 원활하게 통합되며, 사용자 정의 가능한 스타일과 동작을 제공합니다.
사용 사례
자라리 달력에서 날짜 선택
이란 또는 페르시아어 사용자를 위한 앱 만들기
양식에 자라리 달력 통합
다국어 날짜 입력 지원
문화적으로 적절한 UI 만들기
주요 기능
자랄리(페르시아) 달력 지원
Material 스타일 디자인
크로스 플랫폼 호환성
사용자 정의 가능한 외관
Flutter 폼과의 간편한 통합
시간 및 날짜 선택
적합한 대상
이란 또는 페르시아어 지역을 대상으로 하는 앱
자라이리 달력 기능이 필요한 개발자
문화적으로 관련된 날짜 선택기가 필요한 프로젝트
국제화가 필요한 플러터 앱
로컬라이즈된 날짜 입력이 필요한 UI 컴포넌트
고려 사항
이란력 시스템에 대한 이해가 필요합니다
비페르시아어 텍스트를 위한 추가 로컬라이제이션이 필요할 수 있습니다
플랫폼별 렌더링 차이가 발생할 수 있습니다
주류 패키지에 비해 문서가 제한적
업데이트를 위해 외부 GitHub 저장소에 의존합니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
Persian (Farsi, Shamsi, Jalali) Date & Time Picker for Flutter
Overview
A Persian Date & Time picker inspired by Material Design's DateTime picker, built on the shamsi_date library. It offers full support for the Persian (Jalali) calendar and is highly customizable, including compatibility with Material 3.
Additionally, it supports multiple languages, including Persian, Dari, Kurdish, Pashto, and custom locales, all while ensuring seamless integration with Flutter and maintaining Material Design standards.
️ Features
🌟 Fully supports Persian (Jalali) calendar
🛠 Highly customizable
💻 Supports Material 3
🌎 Multi-language support: Persian, Dari, Kurdish, Pashto, and custom locales
📱 Compatible with Material Design standards
️ Getting Started
To use the Persian DateTime Picker, add the package to your pubspec.yaml:
You can customize the styles of the PersianDateTimePicker and PersianCupertinoDatePicker using the DatePickerTheme within your app's ThemeData. Additionally, you can apply specific styles by wrapping the date picker with Theme in the builder.
Example for Persian Date Picker
Add the DatePickerTheme to your ThemeData:
returnMaterialApp(
theme: ThemeData(
// Other theme properties...
datePickerTheme: DatePickerTheme(
backgroundColor: Colors.white, // Background color of the date picker
primaryColor: Colors.teal, // Primary color for the date picker
textColor: Colors.black, // Text color// Customize more properties as needed
),
),
// ...
);
Customizing Persian Date Picker with Theme in Builder
You can also customize the Persian date picker on a per-instance basis by wrapping it with a Theme in the builder:
All customization options for the PersianDateTimePicker and PersianCupertinoDatePicker are similar to those of the native Flutter date pickers. You can easily apply styles using ThemeData, DatePickerTheme, or by wrapping the pickers with Theme in the builder, just like you would with native Flutter widgets.
6. Using Material 2 Instead of Material 3
If you prefer to use Material 2 instead of Material 3 for your application, you can do so by setting the useMaterial3 parameter to false in the MaterialApp widget. This ensures that the application uses the Material 2 design principles.
Example
Here’s how to set up your MaterialApp to use Material 2:
returnMaterialApp(
title: 'Persian DateTime Picker',
theme: ThemeData(
useMaterial3: false, // Set to false to use Material 2
datePickerTheme: DatePickerTheme(
backgroundColor: Colors.white,
primaryColor: Colors.teal,
textColor: Colors.black,
// Additional customizations
),
),
home: MyHomePage(),
);
️ Support Us
Feel free to check it out and give it a ️ if you love it.
Follow me for more updates and projects!
️ Contributions and Feedback
Pull requests and feedback are always welcome!
Feel free to reach out at [mem.amir.m@gmail.com](mailto:mem.amir.m@gmail.com) or connect with me on LinkedIn.