Material design style of the time selector

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' ); 
});

 

Guess you like

Origin www.cnblogs.com/timba1322/p/12486973.html