How to remove edit button from showdatepicker

Viewed 94

I'm using the showDatePicker to display the date and get the selected date but I don't need the above edit button, so how I can remove or disable it

My code :

showDatePicker(
          context: context,
          initialDate: DateTime.now(),
          firstDate: DateTime.now(),
          lastDate:
              DateTime.parse('2051-08-30'))
      .then((value) {
    cubit.getDateTime(
        date: value.toString());
  });

My result:

enter image description here

1 Answers
initialEntryMode: DatePickerEntryMode.calendarOnly,
Related