showPicker static method

Future showPicker(
  1. BuildContext context, {
  2. bool showTitleActions = true,
  3. bool? loopList,
  4. DateChangedCallback? onChanged,
  5. DateChangedCallback? onConfirm,
  6. dynamic locale = LocaleType.zh,
  7. CommonPickerData? pickerData,
  8. 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,
    ),
  );
}