pickFullDate static method
void
pickFullDate({
- required BuildContext context,
- required OnPickDate? onSubmit,
- DateTime? initialDate,
- int? maxYear,
- int? minYear,
- double? borderRadius,
- Color? primaryColor,
- Color? onPrimaryColor,
- Color? background,
- TextStyle? titleTextStyle,
- TextStyle? titleSelectedTextStyle,
- TextStyle? dateTextStyle,
- TextStyle? dateSelectedTextStyle,
- TextStyle? submitTextStyle,
- TextStyle? cancelTextStyle,
- String? submitTitle,
- String? cancelTitle,
- bool? showTodayBanner,
- TextStyle? todayTitleBannerTextStyle,
- TextStyle? todayDateBannerTextStyle,
- bool? useGoToTodayButton,
- String? goTitle,
- TextStyle? goTextStyle,
Implementation
static void pickFullDate({
required BuildContext context,
required OnPickDate? onSubmit,
DateTime? initialDate,
int? maxYear,
int? minYear,
double? borderRadius,
Color? primaryColor,
Color? onPrimaryColor,
Color? background,
TextStyle? titleTextStyle,
TextStyle? titleSelectedTextStyle,
TextStyle? dateTextStyle,
TextStyle? dateSelectedTextStyle,
TextStyle? submitTextStyle,
TextStyle? cancelTextStyle,
String? submitTitle,
String? cancelTitle,
bool? showTodayBanner,
TextStyle? todayTitleBannerTextStyle,
TextStyle? todayDateBannerTextStyle,
bool? useGoToTodayButton,
String? goTitle,
TextStyle? goTextStyle,
}) {
showDialog(
context: context,
builder: (context) {
return DatePickerDialogBox(
initialDate: initialDate,
onSubmit: onSubmit,
borderRadius: borderRadius ?? 20.0,
pickDateFormat: PickDateFormat.ddMMyyyy,
maxYear: maxYear,
minYear: minYear,
background: background,
onPrimaryColor: onPrimaryColor,
primaryColor: primaryColor,
cancelButtonStyle: null,
cancelTextStyle: cancelTextStyle,
cancelTitle: cancelTitle,
submitButtonStyle: null,
submitTextStyle: submitTextStyle,
submitTitle: submitTitle,
dateButtonStyle: null,
dateSelectedButtonStyle: null,
dateSelectedTextStyle: dateSelectedTextStyle,
dateTextStyle: dateTextStyle,
titleBoxStyle: null,
titleButtonStyle: null,
titleSelectedButtonStyle: null,
titleSelectedTextStyle: titleSelectedTextStyle,
titleTextStyle: titleTextStyle,
calendarType: CalendarType.persian,
showTodayBanner: showTodayBanner ?? false,
todayTitleBannerTextStyle: todayTitleBannerTextStyle,
todayDateBannerTextStyle: todayDateBannerTextStyle,
useGoToTodayButton: useGoToTodayButton ?? false,
goTitle: goTitle,
goButtonStyle: null,
goTextStyle: goTextStyle,
);
},
);
}