koukibadr / Bottom-Picker

https://pub.dev/packages/bottom_picker
MIT License
32 stars 21 forks source link

Feature Request: Add minuteInterval to datetime pickers #63

Closed TomJFox closed 11 months ago

TomJFox commented 1 year ago

CupertinoDatePicker accepts a parameter called minuteInterval which will set the minute selection to move by multiple minutes. It would be great to have this as a parameter of Bottom-Picker which is then passed on to the DatePicker when picking a time.

minuteInterval would be an integer between 1 and 60 or if null set to 1. initialTime minutes would also need to be 'rounded' to the nearest minute interval.

https://api.flutter.dev/flutter/cupertino/CupertinoDatePicker/minuteInterval.html