Issue I’m customizing the DatePicker I’m using, and I’m stuck at the widget in the highlighted area. I can’t figure out which widget it is, and therefore, I’m unable to change the text to white color from ThemeData. How can
Continue readingTag: datepicker
Datepicker is not opening
Issue I created a datepicker function to select the date after the service date. But [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: ‘package:flutter/src/material/date_picker.dart’: Failed assertion: line 185 pos 5: ‘selectableDayPredicate == null || selectableDayPredicate(initialDate)’: Provided initialDate 2024-05-22 00:00:00.000 must satisfy provided selectableDayPredicate. class ScheduleServiceView
Continue readingHow to get the first and last date of month in android datepicker
Issue I’m trying to get user to select two dates, start Date and end Date, regardless of what the user selects i want to make sure the start date starts at the first date of the month and the end
Continue readingMaterial Date Range Picker selection color formatting
Issue When you select two date in the range picker the in-between dates get highlighted. How do i change the color of the in-between dates? Solution You can define a style as: <style name=”MaterialCalendarTheme_RangeFill” parent=”ThemeOverlay.MaterialComponents.MaterialCalendar”> <item name=”materialCalendarStyle”>@style/MyMaterialCalendar</item> </style> <style name=”MyMaterialCalendar”
Continue readingDate picker theme change
Issue I am finding this hard to change the Date picker year in dark theme as it is not visible how to fix this.. Change the color of the year and arrow buttons for dark theme. This is my code
Continue readingHow to disable previous days in calendar in flutter?
Issue I have a datepicker in flutter. Now I need to disable all the previous days from present date in calendar in flutter. When I tried to do , it only disable the one previous day. If someone can try
Continue readingHow to set the time zone in the showDatePickerDialog's DayPicker
Issue I’m in need of a DatePickerDialog that’s completely handled in UTC (for aviation), ignoring the phone’s current time zone. Is it possible to use showDatePickerDialog() and set its DayPicker to UTC, or more specifically: have the current day (which
Continue readingHow to use readonly property in date picker in flutter
Issue I am trying to use the read only property in date picker but unable to do so. Future<void> SelectSpouseDOB(BuildContext context) async { DateTime? pickedDate = await showDatePicker( context: context, initialDate: DateTime.now(), firstDate: DateTime(1970), lastDate: DateTime(2101), builder: (BuildContext context, Widget?
Continue readingHow to hide can't selecting date in datePicker on flutter?
Issue My UI In this datePicker only can select maximum of 2 years and 29days from today (6/10/2020), the minimum day is 1 year from today(5/11//2021), So I want to hide other dates ( can’t select years) How to do
Continue readingHandle with zero's in DatePicker 6-8-2014 to 06-08-2014 in Android?
Issue In my simple android app am showing the current date 05-08-2014. using this code SimpleDateFormat sdf = new SimpleDateFormat(“dd-MM-yyyy”); String currentDate = sdf.format(new Date()); datepick.setText(currentDate); when user want to change date so I used DatePicker for that textview(datepick). Using
Continue reading