showTimePicker static method
Future
showTimePicker(
- BuildContext context, {
- bool showTitleActions = true,
- DateChangedCallback? onChanged,
- DateChangedCallback? onConfirm,
- dynamic locale = LocaleType.zh,
- DateTime? currentTime,
- dynamic theme,
Display time picker bottom sheet.
Implementation
static Future showTimePicker(
BuildContext context, {
bool showTitleActions: true,
DateChangedCallback? onChanged,
DateChangedCallback? onConfirm,
locale: LocaleType.zh,
DateTime? currentTime,
DatePickerTheme? theme,
}) {
return Navigator.push(
context,
new _DatePickerRoute(
showTitleActions: showTitleActions,
onChanged: onChanged,
onConfirm: onConfirm,
locale: locale,
theme: theme,
barrierLabel:
MaterialLocalizations.of(context).modalBarrierDismissLabel,
pickerModel:
TimePickerModel(currentTime: currentTime, locale: locale)));
}