persian_flutter 0.2.0 copy "persian_flutter: ^0.2.0" to clipboard
persian_flutter: ^0.2.0 copied to clipboard

Persian Localization for Flutter. Include a Persian and Time picker which supports Persian calendar.

persian_flutter #

pub package

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';

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'),
);
5
likes
140
pub points
54%
popularity

Publisher

verified publishermkfard.ir

Persian Localization for Flutter. Include a Persian and Time picker which supports Persian calendar.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, persian

More

Packages that depend on persian_flutter