showPicker static method
Future
showPicker(
- BuildContext context, {
- bool showTitleActions = true,
- bool? loopList,
- DateChangedCallback? onChanged,
- DateChangedCallback? onConfirm,
- dynamic locale = LocaleType.zh,
- CommonPickerData? pickerData,
- dynamic theme,
Display picker bottom sheet witch custom picker model. 显示选择器底页 自定义选择器模型
Implementation
static Future showPicker(
BuildContext context, {
bool showTitleActions: true,
bool? loopList,
DateChangedCallback? onChanged,
DateChangedCallback? onConfirm,
locale: LocaleType.zh,
CommonPickerData? pickerData,
DatePickerTheme? theme,
}) {
return Navigator.push(
context,
_DatePickerRoute(
showTitleActions: showTitleActions,
loopList: loopList,
onChanged: onChanged,
onConfirm: onConfirm,
locale: locale,
theme: theme,
barrierLabel:
MaterialLocalizations.of(context).modalBarrierDismissLabel,
pickerModel: pickerData,
),
);
}