showTimePicker static method

Future showTimePicker(
  1. BuildContext context, {
  2. bool showTitleActions = true,
  3. DateChangedCallback? onChanged,
  4. DateChangedCallback? onConfirm,
  5. dynamic locale = LocaleType.zh,
  6. DateTime? currentTime,
  7. 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)));
}