showHebrewCupertinoDatePicker function
void
showHebrewCupertinoDatePicker({
- required BuildContext context,
- required ValueChanged<
DateTime> onDateChanged, - required ValueChanged<
DateTime> onConfirm, - DateTime? initialDate,
- String? confirmText,
- TextStyle? confirmTextStyle,
- 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,
),
);
},
);
}