persian_flutter

Last updated:

0 purchases

persian_flutter Image
persian_flutter Images
Add to Cart

Description:

persian flutter

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
import 'package:persian_flutter/persian_flutter.dart';
copied to clipboard
Call the picker
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'),
);
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.