Update the cupertino picker visuals (#65501)

This commit is contained in:
YeungKC
2020-10-08 04:12:12 +08:00
committed by GitHub
parent 0fbc95df21
commit db25441fd9
8 changed files with 534 additions and 187 deletions

View File

@@ -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]