'I would like to change the disabled text color For the Cupertino DatePicker but I don't know how to do it

My code:

CupertinoTheme(
  data: CupertinoThemeData(
    textTheme: 
CupertinoTextThemeData(
      dateTimePickerTextStyle: 
TextStyle(color: Colors.white),
    ),
  ),
  child: CupertinoDatePicker(
    onDateTimeChanged: (_) {},
  ),
)

In this I am able to change the style of the text, but not the style of the text of the unselectable dates. In case there is no way how can I modify the DatePicker.dart file to add what I want myself?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source