pickMonthAndDay static method

void pickMonthAndDay({
  1. required BuildContext context,
  2. required OnPickDate? onSubmit,
  3. DateTime? initialDate,
  4. double? borderRadius,
  5. Color? primaryColor,
  6. Color? onPrimaryColor,
  7. Color? background,
  8. TextStyle? titleTextStyle,
  9. TextStyle? titleSelectedTextStyle,
  10. TextStyle? dateTextStyle,
  11. TextStyle? dateSelectedTextStyle,
  12. TextStyle? submitTextStyle,
  13. TextStyle? cancelTextStyle,
  14. String? submitTitle,
  15. String? cancelTitle,
  16. bool? showTodayBanner,
  17. TextStyle? todayTitleBannerTextStyle,
  18. TextStyle? todayDateBannerTextStyle,
  19. bool? useGoToTodayButton,
  20. String? goTitle,
  21. TextStyle? goTextStyle,
})

Implementation

static void pickMonthAndDay({
  required BuildContext context,
  required OnPickDate? onSubmit,
  DateTime? initialDate,
  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.ddMM,
        maxYear: null,
        minYear: null,
        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,
      );
    },
  );
}