mirror of
https://github.com/flutter/flutter
synced 2024-10-03 23:14:12 +00:00
Removed TimePicker dependence on accentTextTheme. (#78771)
This commit is contained in:
parent
351e319a47
commit
6556d1db17
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue