showDP method
Future<DateTime?>
showDP({
- required DateTime initialDate,
- required DateTime firstDate,
- required DateTime lastDate,
- DatePickerEntryMode initialEntryMode = material.DatePickerEntryMode.calendar,
- SelectableDayPredicate? selectableDayPredicate,
- String? helpText,
- String? cancelText,
- String? confirmText,
- Locale? locale,
- RouteSettings? routeSettings,
- TextDirection? textDirection,
- TransitionBuilder? builder,
- DatePickerMode initialDatePickerMode = material.DatePickerMode.day,
- String? errorFormatText,
- String? errorInvalidText,
- String? fieldHintText,
- String? fieldLabelText,
Shows a dialog containing a Material Design date picker.
Equivalent to material.showDatePicker.
Implementation
Future<DateTime?> showDP({
required DateTime initialDate,
required DateTime firstDate,
required DateTime lastDate,
material.DatePickerEntryMode initialEntryMode =
material.DatePickerEntryMode.calendar,
material.SelectableDayPredicate? selectableDayPredicate,
String? helpText,
String? cancelText,
String? confirmText,
material.Locale? locale,
bool useRootNavigator = true,
material.RouteSettings? routeSettings,
material.TextDirection? textDirection,
material.TransitionBuilder? builder,
material.DatePickerMode initialDatePickerMode = material.DatePickerMode.day,
String? errorFormatText,
String? errorInvalidText,
String? fieldHintText,
String? fieldLabelText,
}) {
return material.showDatePicker(
context: this,
initialDate: initialDate,
firstDate: firstDate,
lastDate: lastDate,
initialEntryMode: initialEntryMode,
selectableDayPredicate: selectableDayPredicate,
helpText: helpText,
cancelText: cancelText,
confirmText: confirmText,
locale: locale,
useRootNavigator: useRootNavigator,
routeSettings: routeSettings,
textDirection: textDirection,
builder: builder,
initialDatePickerMode: initialDatePickerMode,
errorFormatText: errorFormatText,
errorInvalidText: errorInvalidText,
fieldHintText: fieldHintText,
fieldLabelText: fieldLabelText,
);
}