showPicker static method
Future<DateTime?>
showPicker(
- BuildContext context, {
- bool showTitleActions = true,
- DateChangedCallback? onChanged,
- DateChangedCallback? onConfirm,
- DateCancelledCallback? onCancel,
- dynamic locale = LocaleType.en,
- BasePickerModel? pickerModel,
- DatePickerTheme? theme,
Display date picker bottom sheet witch custom picker model.
Implementation
static Future<DateTime?> showPicker(
BuildContext context, {
bool showTitleActions = true,
DateChangedCallback? onChanged,
DateChangedCallback? onConfirm,
DateCancelledCallback? onCancel,
locale = LocaleType.en,
BasePickerModel? pickerModel,
DatePickerTheme? theme,
}) async {
return await Navigator.push(
context,
_DatePickerRoute(
showTitleActions: showTitleActions,
onChanged: onChanged,
onConfirm: onConfirm,
onCancel: onCancel,
locale: locale,
theme: theme,
barrierLabel:
MaterialLocalizations.of(context).modalBarrierDismissLabel,
pickerModel: pickerModel,
),
);
}