Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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,  
);
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #flutter #date #input #field
ADD COMMENT
Topic
Name
2+2 =