Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gabrimatic/persian_datetimepickers


https://github.com/gabrimatic/persian_datetimepickers

Last synced: 18 days ago
JSON representation

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.

## Donate
* Buy Me A Book

OR

* ETH Address: **0xc2F103b11C5d7bE3Abe292EE549a3ba418655A0E**