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 {
final bool isSelectedDay = selectedDate.year == year && selectedDate.month == month && selectedDate.day == day;
if (isSelectedDay) {
// The selected day gets a circle background highlight, and a contrasting text color.
itemStyle = themeData.accentTextTheme.bodyText1;
itemStyle = themeData.textTheme.bodyText1;
decoration = BoxDecoration(
color: themeData.accentColor,
color: themeData.colorScheme.secondary,
shape: BoxShape.circle,
);
} else if (disabled) {
itemStyle = themeData.textTheme.bodyText2!.copyWith(color: themeData.disabledColor);
} else if (currentDate.year == year && currentDate.month == month && currentDate.day == day) {
// 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(
......
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