DateTimePicker form field flutter code example
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,
);