showHebrewCupertinoDatePicker function

void showHebrewCupertinoDatePicker({
  1. required BuildContext context,
  2. required ValueChanged<DateTime> onDateChanged,
  3. required ValueChanged<DateTime> onConfirm,
  4. DateTime? initialDate,
  5. String? confirmText,
  6. TextStyle? confirmTextStyle,
  7. TextStyle? todaysDateTextStyle,
})

Implementation

void showHebrewCupertinoDatePicker({
  required BuildContext context,
  required ValueChanged<DateTime> onDateChanged,
  required ValueChanged<DateTime> onConfirm,
  DateTime? initialDate,
  String? confirmText,
  TextStyle? confirmTextStyle,
  TextStyle? todaysDateTextStyle,
}) {
  showModalBottomSheet<void>(
    context: context,
    builder: (BuildContext context) {
      return Align(
        alignment: Alignment.bottomCenter,
        child: CupertinoHebrewDatePicker(
          initialDate: initialDate,
          context: context,
          onConfirm: onConfirm,
          onDateChanged: onDateChanged,
          confirmText: confirmText,
          confirmTextStyle: confirmTextStyle,
          todaysDateTextStyle: todaysDateTextStyle,
        ),
      );
    },
  );
}