BottomPicker.dateTime constructor

BottomPicker.dateTime({
  1. Key? key,
  2. required Widget pickerTitle,
  3. Widget? pickerDescription,
  4. EdgeInsetsGeometry titlePadding = const EdgeInsets.all(0),
  5. Alignment? titleAlignment,
  6. bool dismissable = false,
  7. dynamic onChange(
    1. dynamic
    )?,
  8. dynamic onSubmit(
    1. dynamic
    )?,
  9. Function? onClose,
  10. BottomPickerTheme bottomPickerTheme = BottomPickerTheme.blue,
  11. List<Color>? gradientColors,
  12. DateTime? initialDateTime,
  13. int? minuteInterval,
  14. DateTime? minDateTime,
  15. DateTime? maxDateTime,
  16. bool use24hFormat = false,
  17. double? buttonPadding,
  18. double? buttonWidth,
  19. Color? buttonSingleColor,
  20. Color backgroundColor = Colors.white,
  21. DatePickerDateOrder? dateOrder = DatePickerDateOrder.ymd,
  22. TextStyle pickerTextStyle = const TextStyle(fontSize: 14, color: Colors.black),
  23. bool displayCloseIcon = true,
  24. @Deprecated('Will be removed, if not null `onClose` will override the close button onTap function') bool popOnClose = true,
  25. Color closeIconColor = Colors.black,
  26. double closeIconSize = 20,
  27. LayoutOrientation layoutOrientation = LayoutOrientation.ltr,
  28. MainAxisAlignment buttonAlignment = MainAxisAlignment.center,
  29. double? height,
  30. bool displaySubmitButton = true,
  31. Widget? buttonContent,
  32. BoxDecoration? buttonStyle,
})

Implementation

BottomPicker.dateTime({
  Key? key,
  required this.pickerTitle,
  this.pickerDescription,
  this.titlePadding = const EdgeInsets.all(0),
  this.titleAlignment,
  this.dismissable = false,
  this.onChange,
  this.onSubmit,
  this.onClose,
  this.bottomPickerTheme = BottomPickerTheme.blue,
  this.gradientColors,
  this.initialDateTime,
  this.minuteInterval,
  this.minDateTime,
  this.maxDateTime,
  this.use24hFormat = false,
  this.buttonPadding,
  this.buttonWidth,
  this.buttonSingleColor,
  this.backgroundColor = Colors.white,
  this.dateOrder = DatePickerDateOrder.ymd,
  this.pickerTextStyle = const TextStyle(
    fontSize: 14,
    color: Colors.black,
  ),
  this.displayCloseIcon = true,
  @Deprecated(
    'Will be removed, if not null `onClose` will override the close button onTap function',
  )
  this.popOnClose = true,
  this.closeIconColor = Colors.black,
  this.closeIconSize = 20,
  this.layoutOrientation = LayoutOrientation.ltr,
  this.buttonAlignment = MainAxisAlignment.center,
  this.height,
  this.displaySubmitButton = true,
  this.buttonContent,
  this.buttonStyle,
}) : super(key: key) {
  datePickerMode = CupertinoDatePickerMode.dateAndTime;
  bottomPickerType = BottomPickerType.dateTime;
  itemExtent = 0;
  onRangeDateSubmitPressed = null;
  assertInitialValues();
}