https://github.com/xclud/persian_flutter
Persian date picker, time picker and localization for flutter.
https://github.com/xclud/persian_flutter
Last synced: 3 months ago
JSON representation
Persian date picker, time picker and localization for flutter.
- Host: GitHub
- URL: https://github.com/xclud/persian_flutter
- Owner: xclud
- License: mit
- Created: 2019-12-29T19:58:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-09T12:34:42.000Z (over 5 years ago)
- Last Synced: 2025-01-09T05:17:20.329Z (over 1 year ago)
- Language: Dart
- Homepage: https://pub.dev/packages/persian_flutter
- Size: 109 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# persian_flutter
[](https://pub.dartlang.org/packages/persian_flutter)
Persian date picker, time picker and localization for flutter.
## Getting Started
A simple example on how to display a Persian datepicker.
**Import the package**
```dart
import 'package:persian_flutter/persian_flutter.dart';
```
**Call the picker**
```dart
RaisedButton(onPressed: () async {
final date = await showPersianDatePicker(
context: context,
initialDate: DateTime.now(),
firstDate: DateTime.now().add(
Duration(days: -1),
),
lastDate: DateTime.now().add(
Duration(days: 90),
),
);
if(date != null)
{
// Do simething.
}
},
child: Text('Show date picker'),
);
```