omni_datetime_picker library

A DateTime picker to pick a single DateTime or a DateTime range.

Use showOmniDateTimePicker to pick a single DateTime.

Use showOmniDateTimeRangePicker to pick a DateTime range.

Enums

DefaultView
Decides which tab open by default
OmniDateTimePickerType
Type of the OmniDateTimePicker default to dateAndTime if not selected

Functions

showOmniDateTimePicker({required BuildContext context, Widget? title, Widget? separator, DateTime? initialDate, DateTime? firstDate, DateTime? lastDate, bool? is24HourMode, bool? isShowSeconds, int? minutesInterval, int? secondsInterval, bool? isForce2Digits, BorderRadiusGeometry? borderRadius, BoxConstraints? constraints, Widget transitionBuilder(BuildContext, Animation<double>, Animation<double>, Widget)?, Duration? transitionDuration, bool? barrierDismissible, OmniDateTimePickerType type = OmniDateTimePickerType.dateAndTime, bool selectableDayPredicate(DateTime)?, ThemeData? theme}) Future<DateTime?>
Show dialog of the OmniDateTimePicker
showOmniDateTimeRangePicker({required BuildContext context, DateTime? startInitialDate, DateTime? startFirstDate, DateTime? startLastDate, DateTime? endInitialDate, DateTime? endFirstDate, DateTime? endLastDate, bool? is24HourMode, bool? isShowSeconds, int? minutesInterval, int? secondsInterval, bool? isForce2Digits, BorderRadiusGeometry? borderRadius, BoxConstraints? constraints, Widget transitionBuilder(BuildContext, Animation<double>, Animation<double>, Widget)?, Duration? transitionDuration, bool? barrierDismissible, OmniDateTimePickerType type = OmniDateTimePickerType.dateAndTime, bool selectableDayPredicate(DateTime)?, ThemeData? theme, DefaultView defaultView = DefaultView.start}) Future<List<DateTime>?>
Show a dialog of the OmniDateTimePicker