Unverified Commit 7fe4a1bf authored by Darren Austin's avatar Darren Austin Committed by GitHub

Removed DayPicker dependence on accentColor. (#78576)

parent 2e06ed07
...@@ -263,16 +263,16 @@ class DayPicker extends StatelessWidget { ...@@ -263,16 +263,16 @@ class DayPicker extends StatelessWidget {
final bool isSelectedDay = selectedDate.year == year && selectedDate.month == month && selectedDate.day == day; final bool isSelectedDay = selectedDate.year == year && selectedDate.month == month && selectedDate.day == day;
if (isSelectedDay) { if (isSelectedDay) {
// The selected day gets a circle background highlight, and a contrasting text color. // The selected day gets a circle background highlight, and a contrasting text color.
itemStyle = themeData.accentTextTheme.bodyText1; itemStyle = themeData.textTheme.bodyText1;
decoration = BoxDecoration( decoration = BoxDecoration(
color: themeData.accentColor, color: themeData.colorScheme.secondary,
shape: BoxShape.circle, shape: BoxShape.circle,
); );
} else if (disabled) { } else if (disabled) {
itemStyle = themeData.textTheme.bodyText2!.copyWith(color: themeData.disabledColor); itemStyle = themeData.textTheme.bodyText2!.copyWith(color: themeData.disabledColor);
} else if (currentDate.year == year && currentDate.month == month && currentDate.day == day) { } else if (currentDate.year == year && currentDate.month == month && currentDate.day == day) {
// The current day gets a different text color. // The current day gets a different text color.
itemStyle = themeData.textTheme.bodyText1!.copyWith(color: themeData.accentColor); itemStyle = themeData.textTheme.bodyText1!.copyWith(color: themeData.colorScheme.secondary);
} }
Widget dayWidget = Container( Widget dayWidget = Container(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment