showTimePicker ( context: context, initialTime: TimeOfDay.now (), // initializes the display time ) .then ((timeOfDay) { // select time click OK time to get results IF (timeOfDay == null ) { return ; } Print ( "currently selected: when $ {timeOfDay.hour} $ {timeOfDay.minute} minutes' ); });