custom_time_picker_widget

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

custom time picker widget

time_picker_widget #
It is a custom showTimePicker to allow you set a selectableTimePredicate like you do in showDatePicker.

showCustomTimePicker(
context: context,
// It is a must if you provide selectableTimePredicate
onFailValidation: (context) => print('Unavailable selection'),
initialTime: TimeOfDay(hour: 2, minute: 0),
selectableTimePredicate: (time) =>
time.hour > 1 &&
time.hour < 14 &&
time.minute % 10 == 0).then((time) =>
setState(() => selectedTime = time?.format(context)))
copied to clipboard
DEMO
You can see a complete sample in example/example.dart file

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.