showDatePickerDialog function
show date picker
Implementation
Future<DateTime?> showDatePickerDialog(context) async {
return showDatePicker(
context: context,
initialDate: DateTime.now(),
firstDate: DateTime(2021),
lastDate: DateTime(2101));
}