Questions tagged [flutter-date-range-picker]

11 questions
6
votes
7 answers

Customize DateRangePicker in flutter

I want to customize DateRangePicker in flutter, How can I change the following elements? Change the Save button to image. Remove the Switch to input button. Change the header background color. Change day name color. Change background color. Change…
Hamed
  • 5,867
  • 4
  • 32
  • 56
1
vote
0 answers

FLUTTER- How to use selectableDayPredicate: in CupertinoDatePicker() widget?

in Material Design using showDatePicker() widget , we can customize selectable date in particular day using selectableDayPredicate: argument. so i have a list contains some DateTime(), this list is the available date we can choose on the date…
0
votes
1 answer

How can a Date Range Picker in Flutter save the range automatically?

I have added a date range picker to my code. As shown in the image, I am using the text 'Select' for the saving button. However, I want to change this behavior so that the date range is saved as soon as the end date is selected, and the pop-up is…
0
votes
1 answer

I want to change the date string of showDatePicker on flutter

I want to customize the color and the text of this showDatePicker with material3, on flutter I want to customize as this I need this text to be something like this "Seg, 17 de jul."
0
votes
2 answers

Flutter Date Range Picker limit to certain days

How can we allow only selection of 30 days with any start date in DateRangePicker? Only firstDate and lastDate can be provided, which can be restricted to 30 days starting from the provided firstDate only.
0
votes
1 answer

How to use Flutter Riverpod with Date Range Picker

I am trying to use Flutter Riverpod together with the Date Range Picker. I have a list of Trips which when clicked on, open up the Trip Page. On the trip page, the user can view the start / end dates They can then click on a button, which…
jcwhall
  • 63
  • 4
0
votes
2 answers

Flutter setState does not update widget

I have a function called pickDateRange and, for some reason, dateRangePicker does not update its value in widget after setState. I would like to know how to solve it. When I print the value of dateRangePicker from function body it changes, but in…
0
votes
0 answers

How can we get the list of selected dates from days of current year in flutter?

I want to get the list of dates from selected day from calendar. The scenario is that I have a screen in which I am displaying the weekly days and user can select any of the day from week. Suppose that any user selected "Monday" and "Friday" from…
0
votes
0 answers

How to disable Flutter DatePicker?

I have an issue with DatePicker in my application. Here's a simple TextFormField that I've created in my app which will open up DatePicker whenever the user taps on it. This widget is a part of a form where I also have specified the GlobalKey and…
0
votes
2 answers

How to get only "date" in DateTime format using syncfusion_flutter_datepicker in Flutter

What i want: I want to get only the startDate and endDate in DateTime format so that i can find the difference of days between the two dates. Instead i'm getting startDate and endDate in String format. My code: void…
0
votes
1 answer

The instance member 'noww' can't be accessed in an initializer

i have this date picker in my app, and i want the last date to be 3 years ago from the time using the app how can i solve it, i tried to give the last date now.year -3 but it doesn't work! it keeps tell me that 'The instance member 'noww' can't be…