date_field
library
Functions
detect24HourFormat (BuildContext context )
→ bool
A function that returns a boolean value to determine if the 24-hour format
should be used based on the current locale.
showAdaptiveDateTimePicker ({required BuildContext context , required DateTimeFieldPickerMode mode , DateTimeFieldPickerPlatform ? pickerPlatform , DateTime ? initialPickerDateTime , DateTime ? firstDate , DateTime ? lastDate , CupertinoDatePickerOptions cupertinoDatePickerOptions = const CupertinoDatePickerOptions() , MaterialDatePickerOptions materialDatePickerOptions = const MaterialDatePickerOptions() , MaterialTimePickerOptions materialTimePickerOptions = const MaterialTimePickerOptions() })
→ Future <DateTime ? >
Displays an adaptive date and time picker based on the current platform.
showCupertinoDateTimePicker ({required BuildContext context , required DateTimeFieldPickerMode mode , DateTime ? initialPickerDateTime , DateTime ? firstDate , DateTime ? lastDate , CupertinoDatePickerOptions cupertinoDatePickerOptions = const CupertinoDatePickerOptions() })
→ Future <DateTime ? >
Displays a Cupertino-style date and time picker in a modal popup.
showMaterialDateTimePicker ({required BuildContext context , required DateTimeFieldPickerMode mode , DateTime ? initialPickerDateTime , DateTime ? firstDate , DateTime ? lastDate , MaterialDatePickerOptions materialDatePickerOptions = const MaterialDatePickerOptions() , MaterialTimePickerOptions materialTimePickerOptions = const MaterialTimePickerOptions() })
→ Future <DateTime ? >
Displays a Material-style date and time picker in a modal popup.
The context
parameter is required to provide the necessary context for
the picker. The mode
parameter specifies whether to show a date, time,
or both date and time picker. The initialPickerDateTime
parameter sets
the initial date and time to be displayed by the picker.