Chris1234567899 / flutter_time_range_picker

A time range picker for Flutter
MIT License
33 stars 53 forks source link

onConfirm Function #8

Closed AntoliniMatteo closed 3 years ago

AntoliniMatteo commented 3 years ago

Can you please add onConfirm(TimeOfDay startTime, TimeOfDay endTime)?

Chris1234567899 commented 3 years ago

I don't think that this is necessary. You can get the times like this:

             TimeRange result = await showTimeRangePicker(
              context: context,
            );
            print("result " + result.toString());

TimeRange contains the start and end times and the result will be null if the user did not click the confirm button.