Update the cupertino picker visuals (#65501)
This commit is contained in:
@@ -305,6 +305,16 @@ abstract class GlobalCupertinoLocalizations implements CupertinoLocalizations {
|
||||
).replaceFirst(r'$hour', _decimalFormat.format(hour));
|
||||
}
|
||||
|
||||
@override
|
||||
List<String> get timerPickerHourLabels => <String>[
|
||||
timerPickerHourLabelZero,
|
||||
timerPickerHourLabelOne,
|
||||
timerPickerHourLabelTwo,
|
||||
timerPickerHourLabelFew,
|
||||
timerPickerHourLabelMany,
|
||||
timerPickerHourLabelOther,
|
||||
];
|
||||
|
||||
/// Subclasses should provide the optional zero pluralization of [timerPickerMinuteLabel] based on the ARB file.
|
||||
@protected String get timerPickerMinuteLabelZero => null;
|
||||
/// Subclasses should provide the optional one pluralization of [timerPickerMinuteLabel] based on the ARB file.
|
||||
@@ -332,6 +342,16 @@ abstract class GlobalCupertinoLocalizations implements CupertinoLocalizations {
|
||||
).replaceFirst(r'$minute', _decimalFormat.format(minute));
|
||||
}
|
||||
|
||||
@override
|
||||
List<String> get timerPickerMinuteLabels => <String>[
|
||||
timerPickerMinuteLabelZero,
|
||||
timerPickerMinuteLabelOne,
|
||||
timerPickerMinuteLabelTwo,
|
||||
timerPickerMinuteLabelFew,
|
||||
timerPickerMinuteLabelMany,
|
||||
timerPickerMinuteLabelOther,
|
||||
];
|
||||
|
||||
/// Subclasses should provide the optional zero pluralization of [timerPickerSecondLabel] based on the ARB file.
|
||||
@protected String get timerPickerSecondLabelZero => null;
|
||||
/// Subclasses should provide the optional one pluralization of [timerPickerSecondLabel] based on the ARB file.
|
||||
@@ -359,6 +379,16 @@ abstract class GlobalCupertinoLocalizations implements CupertinoLocalizations {
|
||||
).replaceFirst(r'$second', _decimalFormat.format(second));
|
||||
}
|
||||
|
||||
@override
|
||||
List<String> get timerPickerSecondLabels => <String>[
|
||||
timerPickerSecondLabelZero,
|
||||
timerPickerSecondLabelOne,
|
||||
timerPickerSecondLabelTwo,
|
||||
timerPickerSecondLabelFew,
|
||||
timerPickerSecondLabelMany,
|
||||
timerPickerSecondLabelOther,
|
||||
];
|
||||
|
||||
/// A [LocalizationsDelegate] for [CupertinoLocalizations].
|
||||
///
|
||||
/// Most internationalized apps will use [GlobalCupertinoLocalizations.delegates]
|
||||
|
||||
Reference in New Issue
Block a user