A persian (farsi,shamsi) datetime picker for flutter, inspired by material datetime picker.

Overview

📆 A persian (farsi,shamsi) datetime picker for flutter, inspired by material datetime picker.

pub package APK

Persian DateTime Picker Banner

Persian datetime picker inspired by material datetime picker and based on shamsi_date.

The Banner designed by Nader Mozaffari.

Usage

Add it to your pubspec.yaml file:

dependencies:

persian_datetime_picker: version

In your library add the following import:

import  'package:persian_datetime_picker/persian_datetime_picker.dart';

Here is many examples how to use:

/////////////////////////Example 1////////////////////////////
Jalali picked = await showPersianDatePicker(
    context: context,
    initialDate: Jalali.now(),
    firstDate: Jalali(1385, 8),
    lastDate: Jalali(1450, 9),
);
var label = picked.formatFullDate();
/////////////////////////Example 2////////////////////////////
var picked = await showTimePicker(
  context: context,
  initialTime: TimeOfDay.now(),
);
var label = picked.persianFormat(context);
/////////////////////////Example 3////////////////////////////
  Jalali pickedDate = await showModalBottomSheet<Jalali>(
    context: context,
    builder: (context) {
      Jalali tempPickedDate;
      return Container(
        height: 250,
        child: Column(
          children: <Widget>[
            Container(
              child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: <Widget>[
                  CupertinoButton(
                    child: Text(
                      'لغو',
                      style: TextStyle(
                        fontFamily: 'Dana',
                      ),
                    ),
                    onPressed: () {
                      Navigator.of(context).pop();
                    },
                  ),
                  CupertinoButton(
                    child: Text(
                      'تایید',
                      style: TextStyle(
                        fontFamily: 'Dana',
                      ),
                    ),
                    onPressed: () {
                      Navigator.of(context).pop(tempPickedDate ?? Jalali.now());
                    },
                  ),
                ],
              ),
            ),
            Divider(
              height: 0,
              thickness: 1,
            ),
            Expanded(
              child: Container(
                child: CupertinoTheme(
                  data: CupertinoThemeData(
                    textTheme: CupertinoTextThemeData(
                      dateTimePickerTextStyle: TextStyle(fontFamily: "Dana"),
                    ),
                  ),
                  child: PCupertinoDatePicker(
                    mode: PCupertinoDatePickerMode.dateAndTime,
                    onDateTimeChanged: (Jalali dateTime) {
                      tempPickedDate = dateTime;
                    },
                  ),
                ),
              ),
            ),
          ],
        ),
      );
    },
  );
  
 /////////////////////////Example 4//////////////////////////// 
var picked = await showPersianDateRangePicker(
    context: context,
    initialEntryMode: PDatePickerEntryMode.input,
    initialDateRange: JalaliRange(
      start: Jalali(1400, 1, 2),
      end: Jalali(1400, 1, 10),
    ),
    firstDate: Jalali(1385, 8),
    lastDate: Jalali(1450, 9),
  );
  

##Pull request and feedback are always appreciated. ###Contact me with [email protected].

Comments
  • flutter new version bug

    flutter new version bug

    hi

    /C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/time_picker.dart:22:24: Error: 'DateUtils' is imported from both 'package:flutter/src/material/date.dart' and 'package:persian_datetime_picker/utils/date.dart'.
      var dateUtiles = new DateUtils();
                           ^^^^^^^^^
    /C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/handle_picker.dart:55:29: Error: 'DateUtils' is imported from both 'package:persian_datetime_picker/utils/date.dart' and 'package:flutter/src/material/date.dart'.
              initDateTime = '${DateUtils.jalaliToString(now)} # ${DateUtils.jalaliToString(now)}';
                                ^^^^^^^^^
    /C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/handle_picker.dart:55:64: Error: 'DateUtils' is imported from both 'package:persian_datetime_picker/utils/date.dart' and 'package:flutter/src/material/date.dart'.
              initDateTime = '${DateUtils.jalaliToString(now)} # ${DateUtils.jalaliToString(now)}';
                                                                   ^^^^^^^^^
    /C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/handle_picker.dart:58:29: Error: 'DateUtils' is imported from both 'package:persian_datetime_picker/utils/date.dart' and 'package:flutter/src/material/date.dart'.
              initDateTime = '${DateUtils.jalaliToString(now)} 00:00';
                                ^^^^^^^^^
    /C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/handle_picker.dart:61:29: Error: 'DateUtils' is imported from both 'package:persian_datetime_picker/utils/date.dart' and 'package:flutter/src/material/date.dart'.
              initDateTime = '${DateUtils.jalaliToString(now)}';
                                ^^^^^^^^^
    /C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/handle_picker.dart:334:21: Error: 'DateUtils' is imported from both 'package:persian_datetime_picker/utils/date.dart' and 'package:flutter/src/material/date.dart'.
              initDate: DateUtils.jalaliToString(
                        ^^^^^^^^^
    /C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/handle_picker.dart:345:21: Error: 'DateUtils' is imported from both 'package:persian_datetime_picker/utils/date.dart' and 'package:flutter/src/material/date.dart'.
              initDate: DateUtils.jalaliToString(
                        ^^^^^^^^^
    /C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/month_picker.dart:79:28: Error: 'DateUtils' is imported from both 'package:flutter/src/material/date.dart' and 'package:persian_datetime_picker/utils/date.dart'.
          var dateUtiles = new DateUtils();
                               ^^^^^^^^^
    /C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/year_picker.dart:109:28: Error: 'DateUtils' is imported from both 'package:flutter/src/material/date.dart' and 'package:persian_datetime_picker/utils/date.dart'.
          var dateUtiles = new DateUtils();
                               ^^^^^^^^^
    /C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/widget/day_container.dart:32:26: Error: 'DateUtils' is imported from both 'package:flutter/src/material/date.dart' and 'package:persian_datetime_picker/utils/date.dart'.
        var dateUtiles = new DateUtils();
                             ^^^^^^^^^
    /C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/widget/day_container.dart:49:28: Error: 'DateUtils' is imported from both 'package:flutter/src/material/date.dart' and 'package:persian_datetime_picker/utils/date.dart'.
          var dateUtiles = new DateUtils();
                               ^^^^^^^^^
    
    
    FAILURE: Build failed with an exception.
    
    * Where:
    Script 'C:\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 997
    
    * What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.
    > Process 'command 'C:\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 24s
    Exception: Gradle task assembleDebug failed with exit code 1
    
    

    These line (error) are showed when building

    opened by ali-tafakkori 4
  • Dependence on shamsi_date library

    Dependence on shamsi_date library

    Please depend on shamsi_date library instead of copying it's code. Since there are people who make issues on shamsi_date and I think their problem is about usage of outdated shamsi_date version. Depending on library has this advantage that when I fix some issue or add some new feature you will automatically get it. 😄 😅 If you have problems with depending on library please inform me. Thanks.

    opened by FatulM 3
  • بستن یک تاریخ خاص

    بستن یک تاریخ خاص

    سلام ببخشید من میخواستم یه سری روزهای خاص رو ببندم مثلا بگم پنج شنبه و جمع یا مثلا یه روز خاص رو نشه انتخاب کرد ممنون میشم راهنمایی کنید کجاشو باید تغییر بدم تشکر

    opened by imelyas 3
  • Compile error after updating to version 2.5.0

    Compile error after updating to version 2.5.0

    After updating to version 2.5.0 I have the following errors:

    D:/flutter2.10/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/ptime_picker.dart:813:48: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.
     - 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/D:/flutter2.10/packages/flutter/lib/src/painting/binding.dart').
    Try accessing using ?. instead.
      }) : super(repaint: PaintingBinding.instance.systemFonts);
                                                   ^^^^^^^^^^^
    /D:/flutter2.10/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:668:30: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.
     - 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/D:/flutter2.10/packages/flutter/lib/src/painting/binding.dart').
    Try accessing using ?. instead.
        PaintingBinding.instance.systemFonts.addListener(_handleSystemFontsChange);
                                 ^^^^^^^^^^^
    /D:/flutter2.10/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:681:30: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.
     - 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/D:/flutter2.10/packages/flutter/lib/src/painting/binding.dart').
    Try accessing using ?. instead.
        PaintingBinding.instance.systemFonts
                                 ^^^^^^^^^^^
    /D:/flutter2.10/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:1226:30: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.
     - 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/D:/flutter2.10/packages/flutter/lib/src/painting/binding.dart').
    Try accessing using ?. instead.
        PaintingBinding.instance.systemFonts.addListener(_handleSystemFontsChange);
                                 ^^^^^^^^^^^
    /D:/flutter2.10/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:1245:30: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.
     - 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/D:/flutter2.10/packages/flutter/lib/src/painting/binding.dart').
    Try accessing using ?. instead.
        PaintingBinding.instance.systemFonts
                                 ^^^^^^^^^^^
    /D:/flutter2.10/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:1590:31: Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?' because it is potentially null.
     - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/D:/flutter2.10/packages/flutter/lib/src/scheduler/binding.dart').
    Try calling using ?. instead.
        SchedulerBinding.instance.addPostFrameCallback((Duration timestamp) {
                                  ^^^^^^^^^^^^^^^^^^^^
    /D:/flutter2.10/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:1800:30: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.
     - 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/D:/flutter2.10/packages/flutter/lib/src/painting/binding.dart').
    Try accessing using ?. instead.
        PaintingBinding.instance.systemFonts.addListener(_handleSystemFontsChange);
                                 ^^^^^^^^^^^
    /D:/flutter2.10/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:1816:30: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.
     - 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/D:/flutter2.10/packages/flutter/lib/src/painting/binding.dart').
    Try accessing using ?. instead.
        PaintingBinding.instance.systemFonts
                                 ^^^^^^^^^^^
    /D:/flutter2.10/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:2063:31: Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?' because it is potentially null.
     - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/D:/flutter2.10/packages/flutter/lib/src/scheduler/binding.dart').
    Try calling using ?. instead.
        SchedulerBinding.instance.addPostFrameCallback((Duration timestamp) {
                                  ^^^^^^^^^^^^^^^^^^^^
    

    Here is the flutter doctor summary:

    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel stable, 2.10.5, on Microsoft Windows [Version 10.0.19044.1706], locale en-US)
    [√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    [√] Chrome - develop for the web
    [X] Visual Studio - develop for Windows
        X Visual Studio not installed; this is necessary for Windows development.
          Download at https://visualstudio.microsoft.com/downloads/.
          Please install the "Desktop development with C++" workload, including all of its default components
    [√] Android Studio (version 2021.1)
    [√] IntelliJ IDEA Ultimate Edition (version 2021.3)
    [√] Connected device (4 available)
    [√] HTTP Host Availability
    
    opened by shahpasandar 2
  • Please provide a donation link for this awesome project

    Please provide a donation link for this awesome project

    Hi.

    I'm really glad that I found this project. It saved a lot of time and work for my last project. I first thank a lot for this wonderful library and kindly ask for a donation link so that I can at least appreciate your work and time in the slightest way.

    Thanks again.

    opened by AliRezaBeitari 2
  • update to flutter 2.8

    update to flutter 2.8

    سلام خوبید ؟ ببخشید مزاحم شدم . در رابطه با فلاتر خواستم بگم به ورزن ۲.۸ که آپدیت کردم دیگه برنامه هایی که persian dare picker 2.3.0 استفاده کردم ارور میده خواستم ببینم میتونید یه راهنمایی کنید ؟ یا اینکه باید آپدیت بدید؟

    opened by PouryaNoufallah96 2
  • خطا موقع استفاده

    خطا موقع استفاده

    سلام من بعداز اینکه پکیج رو اضافه میکنم خطای زیر رو میگیرم و نمیتونم از پکیج استفاده کنم

    ` /E:/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/ptime_picker.dart:813:48: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.

    • 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/E:/flutter/packages/flutter/lib/src/painting/binding.dart'). Try accessing using ?. instead. }) : super(repaint: PaintingBinding.instance.systemFonts); ^^^^^^^^^^^ /E:/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:668:30: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.
    • 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/E:/flutter/packages/flutter/lib/src/painting/binding.dart'). Try accessing using ?. instead. PaintingBinding.instance.systemFonts.addListener(_handleSystemFontsChange); ^^^^^^^^^^^ /E:/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:681:30: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.
    • 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/E:/flutter/packages/flutter/lib/src/painting/binding.dart'). Try accessing using ?. instead. PaintingBinding.instance.systemFonts ^^^^^^^^^^^ /E:/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:1226:30: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.
    • 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/E:/flutter/packages/flutter/lib/src/painting/binding.dart'). Try accessing using ?. instead. PaintingBinding.instance.systemFonts.addListener(_handleSystemFontsChange); ^^^^^^^^^^^ /E:/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:1245:30: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.
    • 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/E:/flutter/packages/flutter/lib/src/painting/binding.dart'). Try accessing using ?. instead. PaintingBinding.instance.systemFonts ^^^^^^^^^^^ /E:/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:1590:31: Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?' because it is potentially null.
    • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/E:/flutter/packages/flutter/lib/src/scheduler/binding.dart'). Try calling using ?. instead. SchedulerBinding.instance.addPostFrameCallback((Duration timestamp) { ^^^^^^^^^^^^^^^^^^^^ /E:/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:1800:30: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.
    • 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/E:/flutter/packages/flutter/lib/src/painting/binding.dart'). Try accessing using ?. instead. PaintingBinding.instance.systemFonts.addListener(_handleSystemFontsChange); ^^^^^^^^^^^ /E:/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:1816:30: Error: Property 'systemFonts' cannot be accessed on 'PaintingBinding?' because it is potentially null.
    • 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/E:/flutter/packages/flutter/lib/src/painting/binding.dart'). Try accessing using ?. instead. PaintingBinding.instance.systemFonts ^^^^^^^^^^^ /E:/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-2.5.0/lib/src/cupertino/cupertino_date_picker.dart:2063:31: Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?' because it is potentially null.
    • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/E:/flutter/packages/flutter/lib/src/scheduler/binding.dart'). Try calling using ?. instead. SchedulerBinding.instance.addPostFrameCallback((Duration timestamp) { ^^^^^^^^^^^^^^^^^^^^

    FAILURE: Build failed with an exception.

    • Where: Script 'E:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005

    • What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.

    Process 'command 'E:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    • Get more help at https://help.gradle.org

    BUILD FAILED in 10s Exception: Gradle task assembleDebug failed with exit code 1 `

    duplicate 
    opened by MohammadeMBi 1
  • Flutter 2.8 problem resolution

    Flutter 2.8 problem resolution

    After updating to flutter 2.8 the package stopped working due two depreciated setter (autovalidate and textformatter) inside the package. One is regarding the Form's autovalidateMode and the other is textformatter for digits only on a textfield.

    It's a quick fix for whom to have a project in hand and can't stop for the main developer to update the package. Anyway, there are several more errors on example folder which I had no time to investigate the roots of them.

    Thanks.

    opened by prooshani 1
  • باگ در آپدیت جدید فلاتر

    باگ در آپدیت جدید فلاتر

    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/widget/dialog.dart:725:45: Error: No named parameter with the name 'shadowThemeOnly'. final ThemeData theme = Theme.of(context, shadowThemeOnly: true);

    /C:/src/flutter/packages/flutter/lib/src/material/theme.dart:119:20: Context: Found this candidate, but the arguments don't match. static ThemeData of(BuildContext context) { ^^

    موقع بیلد گرفتن این ارور رو میده

    opened by sepehr13494 1
  • Jalali day is out of valid range

    Jalali day is out of valid range

    It happens in every 30th day of each month (of second half of the year that the months have 30 days) when I call the following: Jalali.now().add(days: 1)

    opened by shahpasandar 0
  • not show the last number of year in PCupertinoDatePickerMode.date

    not show the last number of year in PCupertinoDatePickerMode.date

    hello, I find a bug in the package persian_datetime_picker when using the mode: PCupertinoDatePickerMode.date DateException: Jalali day is out of valid range. and not show the last number of year 

    opened by sardarmz 0
  • add optional value to hide day in date mode #48

    add optional value to hide day in date mode #48

    سلام، یک متغییر به PCupertinoDatePickerMode اضافه کردم و در قسمت نمایش پیکر، عرض ستون روز رو صفر کردم. اگه لازم تغییرات بیشتری داده بشه خوشحال می شم بتونم کمکی کنم. #48

    opened by eamirho3ein3 0
  •  قابلیت حذف روز از دیت پیکر

    قابلیت حذف روز از دیت پیکر

    سلام ممنونم از پکیج خوبتون، اگر امکانش هست این قابلیت که بشه روز رو در حالت باتم شیت حذف کرد و فقط از ماه و سال استفاده کرد رو هم اضافه کنید. این ویژگی در انتخاب تاریخ برای انقضا کارت بانکی خیلی پر کاربرد است.

    enhancement 
    opened by eamirho3ein3 0
  • مبهم بودن نحوه استفاده

    مبهم بودن نحوه استفاده

    سلام وقت بخیر ممنون بابت پکیج خوبتون ولی متاسفانه نتونستم ازش استفاده کنم چون دقیق نحوه استفاده ذکر نکردید example هاش مبهم بود برای من مثلا این یه نمونه از مثال ها بود که معلوم نیست اینو چطوری توی ui استفاده کنیم و اینکه persianFormat این ارور میده اگه امکانش هست براتون نحوه استفاده ش رو کامل تر کنید تا برای من مبتدی هم بتونم راحت ازش استفاده کنم var picked = await showTimePicker( context: context, initialTime: TimeOfDay.now(), ); var label = picked.persianFormat(context);

    help wanted 
    opened by sardarmz 0
Owner
Persian Flutter Community
Persian Flutter Community
Datetime picker formfield - A Flutter widget that wraps a TextFormField and integrates the date and/or time picker dialogs.

DateTimeField A TextFormField that emits DateTimes and helps show Material, Cupertino, and other style picker dialogs. Example See the example tab (ex

Jacob Phillips 182 Dec 1, 2022
A DateTime picker that lets user to select a date and the time, with start & end as a range

Omni DateTime Picker A DateTime picker that lets user to select a date and the time, with start & end as a range. Screenshots Getting started Add this

null 17 Dec 29, 2022
⏰ Type-safe DateTime and Duration calculations, powered by extensions.

⏰ Time With shiny extensions, if you have ever written something like this, then look no further: final DateTime fourHoursFromNow = DateTime.now() + D

Jeremiah Ogbomo 467 Dec 28, 2022
A pure dart package with collection of Nepali Utilities like Date converter, Date formatter, DateTime, Nepali Numbers, Nepali Unicode, Nepali Moments and many more.

Nepali Utilities for Dart A pure dart package with collection of Nepali Utilities like Date converter, Date formatter, DateTime, Nepali Number, Nepali

Sarbagya Dhaubanjar 23 Nov 22, 2022
A Flutter package for adding a DateRange widget into a form. A date picker UX is provided by showDateRangePicker.

A Flutter package for adding a DateRange widget into a form. A date picker UX is provided by showDateRangePicker.

JMA Consulting 9 Mar 12, 2022
Flutter Date Picker Library that provides a calendar as a horizontal timeline.

DatePickerTimeline Flutter Date Picker Library that provides a calendar as a horizontal timeline. How To Use Import the following package in your dart

LiLi 0 Oct 25, 2021
Flutter Cupertino Date Picker

Flutter Cupertino Date Picker [pub packages] | 中文说明 Flutter cupertino date picker. Usage 1. Depend Add this to you package's pubspec.yaml file: depend

Ryuuzaki 0 Nov 9, 2021
Flutter Date Picker Library that provides a calendar as a horizontal timeline

Flutter Date Picker Library that provides a calendar as a horizontal timeline.

Vivek Kaushik 214 Jan 7, 2023
A flutter date time picker

Flutter Datetime Picker (Pub) flutter_datetime_picker A flutter date time picker inspired by flutter-cupertino-date-picker you can choose date / time

Realank 559 Dec 26, 2022
A day night time picker for Flutter. Beautiful day and night animation with Sun and Moon assets.

DayNightTimePicker A day night time picker for Flutter with Zero Dependencies. Default style: IOS style: View it on pub.dev Installation Add to pubspe

Subhamay Dutta 68 Dec 29, 2022
Beautiful Date Range Picker Dialog For Flutter

Beautiful Date Range Picker Dialog For Flutter

Mazouzi Aymene 36 Dec 22, 2022
Flutter Date & Time Range Picker

F-DateTimeRangePicker Date and Time Range Picker for Flutter Installing: dependencies: f_datetimerangepicker: ^0.2.0 Using: import 'package:f_datet

Long Phan 20 Jan 18, 2022
CalendarDatePicker2 - A lightweight and customizable calendar picker based on Flutter CalendarDatePicker

A lightweight and customizable calendar picker based on Flutter CalendarDatePicker, with support for single date picker, range picker and multi picker.

Neo Liu 27 Dec 22, 2022
Calendar widget for flutter

Calendar Shows a scrolling calendar list of events. This is still relatively basic, it always assumes that the getEvents returns the entire list of ca

null 223 Dec 19, 2022
Calendar widget for flutter that is swipeable horizontally. This widget can help you build your own calendar widget highly customizable.

flutter_calendar_carousel Calendar widget for flutter that is swipeable horizontally. This widget can help you build your own calendar widget highly c

dooboolab 750 Jan 7, 2023
Highly customizable, feature-packed calendar widget for Flutter

Table Calendar Highly customizable, feature-packed Flutter Calendar with gestures, animations and multiple formats. Table Calendar with custom styles

Aleksander Woźniak 1.5k Jan 7, 2023
a time planner for flutter to show task on table

A beautiful, easy to use and customizable time planner for flutter mobile ?? , desktop ?? and web ??

Mohammad Jamalianpour 150 Dec 21, 2022
Easy to use and beautiful calendar strip component for Flutter.

Flutter Calendar Strip Easy to use and beautiful calendar strip component for Flutter. Awesome celender widget If this project has helped you out, ple

Siddharth V 176 Dec 14, 2022
A Flutter package allows you to easily implement all calendar UI and calendar event functionality. 👌🔝🎉

calendar_view A Flutter package allows you to easily implement all calendar UI and calendar event functionality. For web demo visit Calendar View Exam

Simform Solutions 219 Dec 22, 2022