datetimepicker form field example flutter
Example: flutter date input field
dependencies: // in pubspec.yaml
date_field: ^0.1.2
DateTime selectedData;
return DateField( // in a build
onDateSelected: (DateTime value) {
setState(() { selectedData = value; });
},
selectedDate: selectedData,
);