showTimePicker( context: context, initialTime: TimeOfDay.now(), //初始化显示时间 ).then((timeOfDay) { //选择时间后点击OK拿到的时间结果 if(timeOfDay == null) { return; } print('当前选择了:${timeOfDay.hour}时${timeOfDay.minute}分'); });
Material design风格的时间选择器
猜你喜欢
转载自www.cnblogs.com/timba1322/p/12486973.html
今日推荐
周排行