Flutter Date & Time Range Picker

Overview

F-DateTimeRangePicker

Date and Time Range Picker for Flutter

Installing:

dependencies:
  f_datetimerangepicker: ^0.2.0

Using:

import 'package:f_datetimerangepicker/f_datetimerangepicker.dart';

DateTimeRangePicker(
                    startText: "From",
                    endText: "To",
                    doneText: "Yes",
                    cancelText: "Cancel",
                    interval: 5,
                    initialStartTime: DateTime.now(),
                    initialEndTime: DateTime.now().add(Duration(days: 20)),
                    mode: DateTimeRangePickerMode.dateAndTime,
                    minimumTime: DateTime.now().subtract(Duration(days: 5)),
                    maximumTime: DateTime.now().add(Duration(days: 25)),
                    use24hFormat: true,
                    onConfirm: (start, end) {
                      print(start);
                      print(end);
                    }).showPicker(context);
              
You might also like...

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

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

πŸ“† A persian (farsi,shamsi) datetime picker for flutter, inspired by material datetime picker. Persian datetime picker inspired by material datetime p

Dec 19, 2022

A day night time picker for Flutter. Beautiful day and night animation with Sun and Moon assets.

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

Dec 29, 2022

Flutter package to create a day date scroller

Flutter package to create a day date scroller

scrolling_day_calendar A flutter calendar package to allow users to scroll through given dates either by swiping left and right or pressing the arrows

Jul 12, 2020

CalendarDatePicker2 - A lightweight and customizable calendar picker based on Flutter CalendarDatePicker

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.

Dec 22, 2022

a time planner for flutter to show task on table

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 🌐

Dec 21, 2022

Calendar widget for flutter

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

Dec 19, 2022

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

 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

Jan 7, 2023

Highly customizable, feature-packed calendar widget for Flutter

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

Jan 7, 2023

A Flutter package for using Jalali (Shamsi, Solar, Persian or Jalaali) calendar. You can convert, format and manipulate Jalali and Gregorian (Miladi) dates.

A Flutter package for using Jalali (Shamsi, Solar, Persian or Jalaali) calendar. You can convert, format and manipulate Jalali and Gregorian (Miladi) dates.

A Flutter package for using Jalali (Shamsi, Solar, Persian or Jalaali) calendar. You can convert, format and manipulate Jalali and Gregorian (Miladi) dates.

Dec 21, 2022
Comments
  • Problem rendering in Release.apk

    Problem rendering in Release.apk

    Hi, Firstly thank you for creating this wonderful widget. I have been using it in my latest project.

    However there is a problem. It works fine in Debug.apk. But, asap I created a Release.apk it did not render the dialog box Body part with the datepicker. It came absolutely empty.

    I understand the compiler shrinks the code and remove all unwanted/unused stuffs when creating Release.apk. The debug file was about 50MB, but Release was 20MB.

    How do I force compiler to include everything just like in Debug?

    Thanks in advance.

    opened by dumshi 1
  • Minutes and Seconds resetting to 0

    Minutes and Seconds resetting to 0

    I have a Time Range picker and found it strange that we have coding that would remove the minutes and seconds from the initial time. Is there a reason for this?

        //Remove minutes and seconds
        initialStartTime = initialStartTime.subtract(Duration(
            minutes: initialStartTime.minute, seconds: initialStartTime.second));
    
        initialEndTime = initialEndTime.subtract(Duration(
            minutes: initialEndTime.minute, seconds: initialEndTime.second));
    
    opened by anraiki 1
  • Even if initialTime is now, it is rounded off to the nearest past hour

    Even if initialTime is now, it is rounded off to the nearest past hour

    Hi @longphanmn ,

    First of all thank you for creating this package. It is very useful.

    Only problem is while setting initial time to current datetime, the start time is picked as nearest past hour, if a user does not select a time manually. e.g. If start time is 11:40, after tapping on Done, picked start time is 11:00.

    I am using the following to round the minutes to the nearest interval. Please use it if you think it can be helpful to fix this issue. If you see any problems, let me know.

    Solution:

    // Remove minutes and seconds to prevent exception of cupertino picker: initial minute is not divisible by minute interval
        int initialStartTimeMinute =
            (initialStartTime.minute / interval).round() * interval;
        initialStartTime = initialStartTime.subtract(Duration(
            minutes: initialStartTime.minute, seconds: initialStartTime.second));
        initialStartTime =
            initialStartTime.add(Duration(minutes: initialStartTimeMinute));
    
        if (initialEndTime == null) {
          initialEndTime = initialStartTime.add(Duration(
              days: mode == DateTimeRangePickerMode.time ? 0 : 1,
              hours: mode == DateTimeRangePickerMode.time ? 2 : 0));
        }
    
        int initialEndTimeMinute =
            (initialEndTime.minute / interval).round() * interval;
        initialEndTime = initialEndTime.subtract(Duration(
            minutes: initialEndTime.minute, seconds: initialEndTime.second));
        initialEndTime =
            initialEndTime.add(Duration(minutes: initialEndTimeMinute));
    
    opened by AyushmanChatterjee 0
Releases(0.2.0)
Owner
Long Phan
Enjoy coding
Long Phan
Beautiful Date Range Picker Dialog For Flutter

Beautiful Date Range Picker Dialog For Flutter

Mazouzi Aymene 36 Dec 22, 2022
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 Custom Time Interval Select Dropdown for getting a Time Range

time_interval_picker A Custom Time Interval Select Dropdown for getting a Time R

Anurag Bansal 2 Apr 13, 2022
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
Allows to use date pickers without dialog. Provides some customizable styles for date pickers.

flutter_date_pickers Allows to use date pickers without dialog. Provides some customizable styles for date pickers. A set of date pickers: DayPicker f

null 196 Dec 29, 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