From 7fe4a1bf04ce5db89d9d636540e7fe642f32ebd7 Mon Sep 17 00:00:00 2001 From: Darren Austin Date: Fri, 19 Mar 2021 15:36:03 -0700 Subject: [PATCH] Removed DayPicker dependence on accentColor. (#78576) --- .../flutter/lib/src/material/date_picker_deprecated.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/material/date_picker_deprecated.dart b/packages/flutter/lib/src/material/date_picker_deprecated.dart index 655eaecca7..ed7faa0a9a 100644 --- a/packages/flutter/lib/src/material/date_picker_deprecated.dart +++ b/packages/flutter/lib/src/material/date_picker_deprecated.dart @@ -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(