Unverified Commit 6556d1db authored by Darren Austin's avatar Darren Austin Committed by GitHub

Removed TimePicker dependence on accentTextTheme. (#78771)

parent 351e319a
......@@ -1252,17 +1252,17 @@ class _DialState extends State<_Dial> with SingleTickerProviderStateMixin {
if (widget.use24HourDials) {
selectedDialValue = widget.selectedTime.hour;
primaryLabels = _build24HourRing(theme.textTheme, primaryLabelColor);
secondaryLabels = _build24HourRing(theme.accentTextTheme, secondaryLabelColor);
secondaryLabels = _build24HourRing(theme.textTheme, secondaryLabelColor);
} else {
selectedDialValue = widget.selectedTime.hourOfPeriod;
primaryLabels = _build12HourRing(theme.textTheme, primaryLabelColor);
secondaryLabels = _build12HourRing(theme.accentTextTheme, secondaryLabelColor);
secondaryLabels = _build12HourRing(theme.textTheme, secondaryLabelColor);
}
break;
case _TimePickerMode.minute:
selectedDialValue = widget.selectedTime.minute;
primaryLabels = _buildMinutes(theme.textTheme, primaryLabelColor);
secondaryLabels = _buildMinutes(theme.accentTextTheme, secondaryLabelColor);
secondaryLabels = _buildMinutes(theme.textTheme, secondaryLabelColor);
break;
}
......
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