Open macmatrix opened 4 years ago
I would like to limit the user to pick a TIME within a range. I wrote the following code and it seems to apply a minimum time but it does not apply a maximum time
FlatButton( onPressed: () { DatePicker.showDateTimePicker(context, showTitleActions: true, minTime: DateTime(year, month, day, hour, minute), maxTime: DateTime(year, month, day, hour + 3, 0), currentTime: DateTime.now(), locale: LocaleType.en); }, child: Text('show date time picker') )
same as you,a bug maybe.
I'm using the same code but I'm limitting the year. That does work for me though.
I would like to limit the user to pick a TIME within a range. I wrote the following code and it seems to apply a minimum time but it does not apply a maximum time