Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrimatic/persian_datetimepickers
https://github.com/gabrimatic/persian_datetimepickers
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gabrimatic/persian_datetimepickers
- Owner: gabrimatic
- License: other
- Created: 2021-07-09T09:04:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-16T08:05:57.000Z (over 2 years ago)
- Last Synced: 2024-10-03T15:15:00.096Z (about 1 month ago)
- Language: Dart
- Size: 309 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
### Persian and gregorian numeric time and date pickers in Flutter.
###### LIGHTWEIGHT - SIMPLE---
## How to use it?
**1. Add the package to pubspec.yaml dependency:**```yaml
dependencies:
persian_datetimepickers: ^1.0.3
```**2. Import package:**
```dart
import 'package:persian_datetimepickers/persian_datetimepickers.dart';
```**3. Call the pickers where ever you want:**
```dart
onTap: () async {
// Time picker
final TimeOfDay? time = await showPersianTimePicker(
context: context,
);setState(() {
_pickedTime = time;
});
// Date picker
final DateTime? date = await showPersianDatePicker(
context: context,
);setState(() {
_pickedDate = date;
});
},
```## Developer
By [Hossein Yousefpour](https://gabrimatic.info "Hossein Yousefpour")© All rights reserved.
OR
* ETH Address: **0xc2F103b11C5d7bE3Abe292EE549a3ba418655A0E**