showDateTimePicker static method

Future showDateTimePicker(
  1. BuildContext context, {
  2. bool showTitleActions = true,
  3. DateTime? minTime,
  4. DateTime? maxTime,
  5. DateChangedCallback? onChanged,
  6. DateChangedCallback? onConfirm,
  7. dynamic locale = LocaleType.zh,
  8. DateTime? currentTime,
  9. dynamic theme,
})

Display date&time picker bottom sheet.

Implementation

static Future showDateTimePicker(
  BuildContext context, {
  bool showTitleActions: true,
  DateTime? minTime,
  DateTime? maxTime,
  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: DateTimePickerModel(
              currentTime: currentTime,
              minTime: minTime,
              maxTime: maxTime,
              locale: locale)));
}