Questions tagged [flutter-datetime-picker]
21 questions
9
votes
7 answers
By updating Flutter 3.8.0 Error in flutter_date_time_picker
By updating Flutter 3.8.0
I am getting the following error in flutter_date_time_picker.
I would like to know if anyone knows a solution to this…

autumn
- 101
- 1
- 2
6
votes
2 answers
How to get Flutter FormBuilderDateTimePicker to show only the date picker
How can I get the Flutter FormBuilderDateTimePicker to only show the date? The code below produces a time picker after the date picker closes and the output is:
flutter: 2022-04-02 00:00:00.000
I could strip the time using DateTime.timeonly() but…

markhorrocks
- 1,199
- 19
- 82
- 151
4
votes
1 answer
How to change datepicker color in flutter?
builder: (context, child) {
return Theme(
data: Theme.of(context).copyWith(
colorScheme: const ColorScheme.light(
primary: Colors.white,
onPrimary:…

K.k
- 367
- 1
- 8
- 17
3
votes
1 answer
The method 'Utils' isn't defined for the type '_CalendarState'. Try correcting the name to the name of an existing method
I am getting errors on this flutter plugin: date_utils.
I have run pug get so many times, onchange of the plugin versions.
What could be the issue?
It also gave me different errors like:
"Undefined name 'Utils'.\nTry correcting the name to one that…

isofttechn
- 400
- 1
- 6
- 19
1
vote
0 answers
Unable to customise data and time picker
I am trying to achieve this into my application
But I am not able to customise my code.
I just wanted to change
Header color
Pencil colour
Selected date colour
And in time picker
Background of time
Background of clock dial
Also I am unable to…

Sanjal
- 33
- 5
1
vote
0 answers
How do I replace/ add to current data stored in Shared Preferences dynamically flutter
Screen
code
I am building a timesheet function on flutter where I get a list from JSON like this
[
{
"date": "2023-02-06 00:00:00.000",
"startTime": "2023-02-06 07:00:00.000",
"endTime": "2023-02-06 16:00:00.000"
},
{
"date":…

Casually Need Help
- 21
- 2
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…

Jilan Dirgantara
- 61
- 1
- 4
1
vote
1 answer
How do i get the current date and time of places around the world in flutter
i am currently working on a world clock app using flutter, can any one recommend dependencies or API i can integrate into my app that provide a list of places around the world, another issue i am having is getting the app to display current date and…

DewunmiRokeeb
- 11
- 3
0
votes
1 answer
Is there a way to override the height/width of the date picker created by showDatePicker?
I am trying to increase the height and width of the date picker dialog shown when calling showDatePicker(). It currently appears quite small on tablets and I want to make it easier to interact with by increasing it's overall size. I have tried a few…

a_kane
- 3
- 2
0
votes
1 answer
How to hide date in hours? - ToDo List App/Flutter
I am making a simple ToDO List App in Flutter(Dart). To the screen, where user can add your task I added a button, which open dialog with calendar, so user can choose the reminder date. Everything works good but there is a little problem. After the…

xenonenias
- 7
- 2
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
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…

J M Bhikadiya
- 129
- 2
- 14
0
votes
3 answers
Flutter custom date format
I am facing issue while formatting the date to custom format.
I need to convert date yyyy-MM-dd HH:mm:ss ===> EEEE, MMM dd, yyyy
For example I am getting date from server 27-10-2022 11:02:50, and I need to convert it to Thursday, October 27, 2022

Dev Dhande
- 39
- 1
- 6
0
votes
3 answers
Flutter DatePicker change format to MM-DD-YYYY
DatePicker.showDatePicker(
context,
showTitleActions: true,
minTime: DateTime(1964, 1, 1),
maxTime: DateTime(2030, 12, 31),
…

Powermaster Prime
- 402
- 1
- 2
- 16
0
votes
1 answer
Date Picker is not showing when clicking the field - flutter
Im building a registration screen that contains a form of input fields, one of the fields is to input the date of birth from user by showing the Date Picker when the user clicks the field, first i have created an instance of DateFormField and…

editix
- 322
- 2
- 14