syncfusion / flutter-widgets

Syncfusion Flutter widgets libraries include high quality UI widgets and file-format packages to help you create rich, high-quality applications for iOS, Android, and web from a single code base.
1.6k stars 783 forks source link

How to set color for today's day of the week for SfDateRangePicker? #1487

Closed kanari3 closed 9 months ago

kanari3 commented 1 year ago

I'm having trouble with Friday turning red. I want to blacken Friday too.

what we tried

Theme(
  data: ThemeData(
    primarySwatch: myPrimarySwatch,
  ),
  child: SfDateRangePicker(

reference

https://github.com/syncfusion/flutter-widgets/issues/141

IndumathiR-1995 commented 11 months ago

Hi,

By using the todayTextStyle and todayHighlightColor property of the date range picker you can change the today text color. We have UG documentation for the same. Please find the UG documentation for the same.

UG link: https://help.syncfusion.com/flutter/daterangepicker/customizations#month-cell-customization

Please find the code snippet.

                child: SfDateRangePicker(
                  monthCellStyle: DateRangePickerMonthCellStyle(
                      todayTextStyle: TextStyle(color: Colors.black)),
                  todayHighlightColor: Colors.black,
                ),

We hope that this helps you. Please let us know if you need further assistance.

Regards, Indumathi R

kanari3 commented 11 months ago

Thanks, I was able to unify the colors of the days of the week.