Removed TimePicker dependence on accentTextTheme. (#78771)

This commit is contained in:
Darren Austin 2021-03-22 14:31:13 -07:00 committed by GitHub
parent 351e319a47
commit 6556d1db17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}